An error occurred fetching the project authors.
  1. 18 Jun, 2004 1 commit
    • Tim Schmielau's avatar
      [PATCH] BSD accounting format rework · f38928f4
      Tim Schmielau authored
      BSD accounting format rework:
      
      Use all explicit and implicit padding in struct acct to
      
       - correctly report 32 bit uid/gid,
       - correctly report jobs (e.g., daemons) running longer than 497 days,
       - increase the precision of ac_etime from 2^-13 to 2^-20
         (i.e., from ~6 hours to ~1 min. after a year)
       - store the current AHZ value.
       - allow cross-platform processing of the accounting file
         (limited for m68k which has a different size struct acct).
       - introduce versioning for smooth transition to incompatible formats in
         the future. Currently the following version numbers are defined:
           0: old format (until 2.6.7) with 16 bit uid/gid
           1: extended variant (binary compatible to v0 on M68K)
           2: extended variant (binary compatible to v0 on everything except M68K)
           3: a new binary incompatible format (64 bytes)
           4: new binary incompatible format (128 bytes).
              layout of its first 64 bytes is the same as for v3.
           5: marks second half of new binary incompatible format (128 bytes)
              (layout is not yet defined)
      
      All this is accomplished without breaking binary compatibility.  32 bit
      uid/gid support is compatible with the patch previously floating around and
      used e.g.  by Red Hat.
      
      This patch also introduces a config option for a new, binary incompatible
      "version 3" format that
      
       - is uniform across and properly aligned on all platforms
       - stores pid and ppid
       - uses AHZ==100 on all platforms (allows to report longer times)
      
      Much of the compatibility glue goes away when v1/v2 support is removed from
      the kernel.  Such a patch is at
      
        http://www.physik3.uni-rostock.de/tim/kernel/2.7/acct-cleanup-04.patch
      
      and might be applied in the 2.7 timeframe.
      
      The new v3 format is source compatible with current GNU acct tools (6.3.5).
      However, current GNU acct tools can be compiled for only one format.  As there
      is no way to pass the kernel configuration to userspace, with my patch it will
      still only support the old v2 format.  Only if v1/v2 support is removed from
      the kernel, recompiling GNU acct tools will yield v3 support.
      
      A preliminary take at the corresponding work on cross-platform userspace tools
      (GNU acct package) is at
      
        http://www.physik3.uni-rostock.de/tim/kernel/utils/acct/
      
      This version of the package is able to read any of the v0/v2/v3 formats,
      regardless of byte-order (untested), even within the same file.
      Cross-platform compatibility with m68k (v1 format) is not yet implemented, but
      native use on m68k should work (untested).  pid and ppid are currently only
      shown by the dump-acct utility.
      
      Thanks to Arthur Corliss, Albert Cahalan and Ragnar Kjørstad for their
      comments, and to Albert Cahalan for the u64->IEEE float conversion code.
      Signed-off-by: default avatarTim Schmielau <tim@physik3.uni-rostock.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      f38928f4
  2. 01 Jun, 2004 1 commit
  3. 21 May, 2004 1 commit
  4. 22 Apr, 2004 1 commit
    • Andrew Morton's avatar
      [PATCH] s390: core s390. · a23d3734
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
      s390 core changes:
       - Fix race in do_call_softirq in regard to kernel preemption.
       - Fix typo in compat mq system call wrappers.
       - Add s390 to Kconfig for AUDITSYSCALL.
       - Redefine TASK_SIZE to TASK31_SIZE for compilation of binfmt_elf32.
       - Use correct error value for sys32_ipc when called with an invalid number.
       - New default configuration.
      a23d3734
  5. 12 Apr, 2004 4 commits
    • Andrew Morton's avatar
      [PATCH] Light-weight Auditing Framework · f85a96f6
      Andrew Morton authored
      From: Rik Faith <faith@redhat.com>
      
      This patch provides a low-overhead system-call auditing framework for Linux
      that is usable by LSM components (e.g., SELinux).  This is an update of the
      patch discussed in this thread:
      
          http://marc.theaimsgroup.com/?t=107815888100001&r=1&w=2
      
      In brief, it provides for netlink-based logging of audit records that have
      been generated in other parts of the kernel (e.g., SELinux) as well as the
      ability to audit system calls, either independently (using simple
      filtering) or as a compliment to the audit record that another part of the
      kernel generated.
      
      The main goals were to provide system call auditing with 1) as low overhead
      as possible, and 2) without duplicating functionality that is already
      provided by SELinux (and/or other security infrastructures).  This
      framework will work "stand-alone", but is not designed to provide, e.g.,
      CAPP functionality without another security component in place.
      
      This updated patch includes changes from feedback I have received,
      including the ability to compile without CONFIG_NET (and better use of
      tabs, so use -w if you diff against the older patch).
      
      Please see http://people.redhat.com/faith/audit/ for an early example
      user-space client (auditd-0.4.tar.gz) and instructions on how to try it.
      
      My future intentions at the kernel level include improving filtering (e.g.,
      syscall personality/exit codes) and syscall support for more architectures.
       First, though, I'm going to work on documentation, a (real) audit daemon,
      and patches for other user-space tools so that people can play with the
      framework and understand how it can be used with and without SELinux.
      
      
      Update:
      
      Light-weight Auditing Framework receive filter fixes
      From: Rik Faith <faith@redhat.com>
      
      Since audit_receive_filter() is only called with audit_netlink_sem held, it
      cannot race with either audit_del_rule() or audit_add_rule(), so the
      list_for_each_entry_rcu()s may be replaced by list_for_each_entry()s, and
      the rcu_read_{un,}lock()s removed.  A fix for this is part of the attached
      patch.
      
      Other features of the attached patch are:
      
      1) generalized the ability to test for inequality
      
      2) added syscall exit status reporting and testing
      
      3) added ability to report and test first 4 syscall arguments (this adds
         a large amount of flexibility for little cost; not implemented or tested
         on ppc64)
      
      4) added ability to report and test personality
      
      User-space demo program enhanced for new fields and inequality testing:
      http://people.redhat.com/faith/audit/auditd-0.5.tar.gz
      f85a96f6
    • Andrew Morton's avatar
      [PATCH] improve CONFIG_EMBEDDED help text · b931abdb
      Andrew Morton authored
      From: Matt Mackall <mpm@selenic.com>
      
      Make CONFIG_EMBEDDED description more accurate
      b931abdb
    • Andrew Morton's avatar
      [PATCH] posix message queues: implementation · be94d44e
      Andrew Morton authored
      From: Manfred Spraul <manfred@colorfullife.com>
      
      Actual implementation of the posix message queues, written by Krzysztof
      Benedyczak and Michal Wronski.  The complete implementation is dependant on
      CONFIG_POSIX_MQUEUE.
      
      It passed the openposix test suite with two exceptions: one mq_unlink test
      was bad and tested undefined behavior.  And Linux succeeds
      mq_close(open(,,,)).  The spec mandates EBADF, but we have decided to ignore
      that: we would have to add a new syscall just for the right error code.
      
      The patch intentionally doesn't use all helpers from fs/libfs for kernel-only
      filesystems: step 5 allows user space mounts of the file system.
      
      
      
      Signal changes:
      
      The patch redefines SI_MESGQ using __SI_CODE: The generic Linux ABI uses
      a negative value (i.e.  from user) for SI_MESGQ, but the kernel internal
      value must be posive to pass check_kill_value.  Additionally, the patch
      adds support into copy_siginfo_to_user to copy the "new" signal type to
      user space.
      
      
      
      Changes in signal code caused by POSIX message queues patch:
      
      General & rationale:
      
        mqueues generated signals (only upon notification) must have si_code
        == SI_MESGQ.  In fact such a signal is send from one process which
        caused notification (== sent message to empty message queue) to
        another which requested it.  Both processes can be of course unrelated
        in terms of uids/euids.  So SI_MESGQ signals must be classified as
        SI_FROMKERNEL to pass check_kill_permissions (not need to say that
        this signals ARE from kernel).
      
        Signals generated by message queues notification need the same
        fields in siginfo struct's union _sifields as POSIX.1b signals and we
        can reuse its union entry.
      
        SI_MESGQ was previously defined to -3 in kernel and also in glibc. 
        So in userspace SI_MESGQ must be still visible as -3.
      
      Solution:
      
        SI_MESGQ is defined in the same style as SI_TIMER using __SI_CODE macro.
      
        Details:
      
          Fortunately copy_siginfo_to_user copies si_code as short.  So we
          can use remaining part of int value freely.  __SI_CODE does the
          work.  SI_MESGQ is in kernel:
      
       		6<<16 | (-3 & 0xffff) what is > 0
      
          but to userspace is copied
      
       		(short) SI_MESGQ == -3
      
      Actual changes:
      
        Changes in include/asm-generic/siginfo.h
      
        __SI_MESGQ added in signal.h to represent inside-kernel prefix of
        SI_MESGQ.  SI_MESGQ is redefined from -3 to __SI_CODE(__SI_MESGQ, -3)
      
        Except mips architecture those changes should be arch independent
        (asm-generic/siginfo.h is included in arch versions).  On mips
        SI_MESGQ is redefined to -4 in order to be compatible with IRIX.  But
        the same schema can be used.
      
        Change in copy_siginfo_to_user: We only add one line to order the
        same copy semantics as for _SI_RT.
      
        This change isn't very portable - some arch have its own
        copy_siginfo_to_user.  All those should have similar change (but
        possibly not one-line as _SI_RT case was sometimes ignored because i
        wasn't used yet, e.g.  see ia64 signal.c).
      
      Update:
      mq: only fail with invalid timespec if mq_timed{send,receive} needs to block
      From: Jakub Jelinek <jakub@redhat.com>
      
      POSIX requires EINVAL to be set if:
      "The process or thread would have blocked, and the abs_timeout parameter
      specified a nanoseconds field value less than zero or greater than or equal
      to 1000 million."
      but 2.6.5-mm3 returns -EINVAL even if the process or thread would not block
      (if the queue is not empty for timedreceive or not full for timedsend).
      be94d44e
    • Andrew Morton's avatar
      [PATCH] Fix URLs in Kconfig files · 77b92f5b
      Andrew Morton authored
      From: Rusty Russell <rusty@rustcorp.com.au>
      
      From: "Petri T. Koistinen" <petri.koistinen@iki.fi>
      
      1) Various URLs in the Kconfig files are out of date: update them.
      
      2) URLs should be of form <http://url-goes-here>.
      
      3) References to files in the source should be of form
         <file:path-from-top>
      
      4) Email addresses should be of form <foo@bar.com>
      77b92f5b
  6. 08 Mar, 2004 1 commit
    • Rusty Russell's avatar
      [PATCH] stop_machine_run: Move Bogolock Code Out of module.c · 80037662
      Rusty Russell authored
      The "bogolock" code was introduced in module.c, as a way of freezing
      the machine when we wanted to remove a module.  This patch moves it
      out to stop_machine.c and stop_machine.h.
      
      Since the code changes affinity and proirity, it's impolite to hijack
      the current context, so we use a kthread.  This means we have to pass
      the function rather than implement "stop_machine()" and
      "restart_machine()".
      80037662
  7. 01 Mar, 2004 1 commit
  8. 18 Feb, 2004 1 commit
  9. 29 Dec, 2003 1 commit
    • Andrew Morton's avatar
      [PATCH] Add `gcc -Os' config option · ffd0cf49
      Andrew Morton authored
      From: Adrian Bunk <bunk@fs.tum.de>
      
      Allow the kernel to be built with `-Os'.
      
      It requires CONFIG_EMBEDDED.  This is to make it "hard to get at" because
      one gcc version (3.2.x I think) from RH9 generates crashy kernels with this
      option set.
      ffd0cf49
  10. 10 Sep, 2003 1 commit
    • Rusty Russell's avatar
      [PATCH] Remove modules.txt · 83bf06e8
      Rusty Russell authored
      Thanks to Stephen Hemminger for pointing out how obsolete modules.txt is.
      
      modules.txt contains mainly ancient information which is replicated
      in the kconfig help message, README, makefile.txt or the modprobe manual
      page.  The only part which is not covered elsewhere is the "building
      external modules" which is still being debated (and belongs under the
      kbuild docs).  kmod.txt reference removed from index, too.
      83bf06e8
  11. 09 Sep, 2003 1 commit
    • Andrew Morton's avatar
      [PATCH] Move ikconfig to /proc/config.gz · f261ecb2
      Andrew Morton authored
      From: "Randy.Dunlap" <randy.dunlap@verizon.net>
      
      
      The SuSE kernels place their ikconfig info at /proc/config.gz: in a
      different place, and compressed.  We thought it was a good idea to do it
      that way in 2.6 as well.
      
      - gzip the /proc config file, put it in /proc/config.gz;
      
      - Based on a SuSE patch by Oliver Xymoron <oxymoron@waste.org>, which was
        derived from a patch by Nicholas Leon <nicholas@binary9.net>
      
      - change /proc/ikconfig/built_with to /proc/config_build_info;
      
      - cleanup ikconfig init/exit entry points (static, __init, __exit);
      
      - Makefile help from Sam Ravnborg;
      
      DESC
      ikconfig cleanup
      EDESC
      From: Stephen Hemminger <shemminger@osdl.org>
      
      Simplify and cleanup the code:
      	- use single interface to seq_file where possible
      	- don't need to do as much of the /proc interface, only read
      	- use copy_to_user to avoid char at a time copy
      	- remove unneccesary globals
      	- use const char[] rather than const char * where possible.
      
      Didn't change the version since interface doesn't change.
      f261ecb2
  12. 07 Sep, 2003 1 commit
  13. 03 Sep, 2003 1 commit
  14. 02 Sep, 2003 2 commits
    • Linus Torvalds's avatar
      Instead of asking for "broken drivers", ask for a "clean compile". · af8b3563
      Linus Torvalds authored
      This makes "allyesconfig" do a better job.
      af8b3563
    • Adrian Bunk's avatar
      [PATCH] Mark more drivers BROKEN{,ON_SMP} · 51e9e974
      Adrian Bunk authored
      - let more drivers that don't compile depend on BROKEN
      - MTD_BLKMTD is fixed, remove the dependency on BROKEN
      - let all drivers that don't compile on SMP (due to cli/sti usage)
        depend on a BROKEN_ON_SMP that is only defined if !SMP || BROKEN
      - #include interrupt.h for dummy cli/sti/... in two files to fix the
        UP compilation of these files
      
      I marked only drivers that are broken for a long time and where I don't 
      know about existing fixes with BROKEN or BROKEN_ON_SMP.
      51e9e974
  15. 20 Aug, 2003 1 commit
    • Andrew Morton's avatar
      [PATCH] misc fixes · 222f1c77
      Andrew Morton authored
      - nmi_watchdog documentation typo ("Randy.Dunlap" <rddunlap@osdl.org>)
      
      - ikconfig proc requires CONFIG_PROC_FS ("Randy.Dunlap" <rddunlap@osdl.org>)
      
      - visws build fix (Andrey Panin <pazke@donpac.ru>)
      
      - VM lock ranking comment update
      222f1c77
  16. 19 Aug, 2003 1 commit
    • Andrew Morton's avatar
      [PATCH] enable the ikconfig stuff in config · d8055027
      Andrew Morton authored
      From: Sean Estabrooks <seanlkml@rogers.com>
      
      - fix space at end of line in config files;
      
      - add error check on put_user(); (Daniele Bellucci <bellucda@tiscali.it>)
      
      - add missing Kconfig piece for ikconfig;
      d8055027
  17. 18 Aug, 2003 1 commit
  18. 26 Jul, 2003 1 commit
    • Bernardo Innocenti's avatar
      [PATCH] Make I/O schedulers optional · f374048e
      Bernardo Innocenti authored
      Add kconfig options to allow excluding either or both the I/O
      schedulers.  This can be useful for embedded systems (saves about ~13KB).
      
      All schedulers are enabled by default for non-embedded.
      f374048e
  19. 10 Jul, 2003 1 commit
    • Andrew Morton's avatar
      [PATCH] make CONFIG_KALLSYMS default to "on" · f3eee922
      Andrew Morton authored
      From: Diego Calleja Garcia <diegocg@teleline.es>
      
      Move CONFIG_KALLSYMS out of the arch directory and into init/.
      
      It defaults to "on" unless the user explicitly turns it off in the
      "embedded systems" menu.
      f3eee922
  20. 02 Jul, 2003 1 commit
    • Andrew Morton's avatar
      [PATCH] Set limits on CONFIG_LOG_BUF_SHIFT · e46e0cf2
      Andrew Morton authored
      From: bert hubert <ahu@ds9a.nl>
      
      Attached patch adds a range check to LOG_BUF_SHIFT and clarifies the
      configuration somewhat.  I managed to build a non-booting kernel because I
      thought 64 was a nice power of two, which lead to the kernel blocking when
      it tried to actually use or allocate a 2^64 buffer.
      e46e0cf2
  21. 25 May, 2003 2 commits
    • Andrew Morton's avatar
      [PATCH] CONFIG_EPOLL · fb39f360
      Andrew Morton authored
      From: Christopher Hoover <ch@murgatroid.com>
      
      Here's a patch to drop some more text/data/bss out of 2.5.  This time
      the ``victim'' is eventpollfs (epoll).
      fb39f360
    • Andrew Morton's avatar
      [PATCH] CONFIG_FUTEX · e8c0de6e
      Andrew Morton authored
      From: Christopher Hoover <ch@murgatroid.com>
      
      Not everyone needs futex support, so it should be optional.  This is needed
      for small platforms.
      e8c0de6e
  22. 14 May, 2003 1 commit
  23. 20 Apr, 2003 1 commit
    • Randy Dunlap's avatar
      [PATCH] replace URLs in Kconfig · e9148e42
      Randy Dunlap authored
      This is a patch from Robert P.J. Day that replaces www.linuxdoc.org
      (which is outdated and unspported according to www.tldp.org)
      with www.tldp.org in lots of Kconfig files.
      e9148e42
  24. 10 Mar, 2003 1 commit
  25. 08 Mar, 2003 1 commit
    • Andrew Morton's avatar
      [PATCH] move CONFIG_SWAP around · fc60971f
      Andrew Morton authored
      Patch from Tom Rini <trini@kernel.crashing.org>
      
      Take CONFIG_SWAP out of the top-level menu into the general setup menu.  Make
      it dependent on CONFIG_MMU and common to all architectures.
      fc60971f
  26. 03 Feb, 2003 1 commit
    • Kai Germaschewski's avatar
      kbuild: Rename CONFIG_MODVERSIONING -> CONFIG_MODVERSIONS · d5ea3bb5
      Kai Germaschewski authored
      CONFIG_MODVERSIONING was a temporary name introduced to distinguish
      between the old and new module version implementation. Since the
      traces of the old implementation are now gone from the build system,
      we rename the config option back in order to not confuse users more
      than necessary in 2.6.
       
      Also, remove some historic modversions cruft throughout the tree.
      d5ea3bb5
  27. 24 Jan, 2003 1 commit
    • Kai Germaschewski's avatar
      kbuild: Add CONFIG_MODVERSIONING and __kcrctab · a6b99776
      Kai Germaschewski authored
      This patch adds the new config option CONFIG_MODVERSIONING which will
      be the new way of checking for ABI changes between kernel and module
      code.
      
      This and the following patches are in part based on an initial
      implementation by Rusty Russell and I believe some of the ideas go back
      to discussions on linux-kbuild, Keith Owens and Rusty.
      
      though I'm not sure I think credit for the basic idea of
      storing version info in sections goes to Keith Owens and Rusty.
      
      o Rename __gpl_ksymtab to __ksymtab_gpl since that looks more consistent
        and appending _gpl instead of putting it into the middle simplifies
        sharing code for EXPORT_SYMBOL() and EXPORT_SYMBOL_GPL()
      o Add CONFIG_MODVERSIONING
      o If CONFIG_MODVERSIONING is set, add a section __kcrctab{,_gpl}, which
        contains the ABI checksums for the exported symbols listed in 
        __ksymtab{,_crc} Since we don't know the checksums yet at compilation
        time, just make them an unresolved symbol which gets filled in by the
        linker later.
      a6b99776
  28. 15 Jan, 2003 1 commit
    • Randy Dunlap's avatar
      [PATCH] update LOG BUF SIZE config. · 6e5878dc
      Randy Dunlap authored
      The current LOG_BUF size is a bit confusing the first
      time that "make oldconfig" is used.  It's difficult to
      select anything other than the default value.
      
      Also, you (Linus) expressed a desire to have this
      configurable only if DEBUG_KERNEL or "kernel hacking"
      was enabled, so I've changed it to accomplish that.
      
      This patch also uses Kconfig in a way that Roman intended
      since a patch in 2.5.52 which enables default values if
      a prompt is not enabled, but lets values be chosen when
      the prompt is enabled.  You also asked for this in setting
      this config option.
      6e5878dc
  29. 13 Jan, 2003 1 commit
  30. 05 Jan, 2003 1 commit
  31. 02 Jan, 2003 1 commit
  32. 15 Dec, 2002 1 commit
    • Rusty Russell's avatar
      [PATCH] MODULE_PARM support for older modules · 136839a1
      Rusty Russell authored
      This is the backwards compatibility code for MODULE_PARM, and moves
      __MODULE_STRING() down to the graveyard at the bottom of module.h.
      
      It's complicated by the fact that many modules place MODULE_PARM()
      before the declaration (some do MODULE_PARM() for non-existant
      variables, too).  To avoid breaking them, we have to do the name
      lookups at load time, rather than just storing a pointer 8(
      
      CONFIG_OBSOLETE_MODPARM is set to y without prompting: it's a useful
      marker for deprecating in 2.7.
      136839a1
  33. 17 Nov, 2002 1 commit
    • Rusty Russell's avatar
      [PATCH] Forced module unload · a89a8e24
      Rusty Russell authored
      This is the logical counterpoint to the code which marks modules
      "[unsafe]" when obsolete (racy) interfaces are used.  Allows "just
      remove the damn thing" rmmod -f, and taints the kernel.
      
      Mark it dangerous and experimental in the config file to make this
      doubly clear.
      a89a8e24
  34. 11 Nov, 2002 1 commit
    • Rusty Russell's avatar
      [PATCH] In-kernel Module Loader · aa65be3f
      Rusty Russell authored
      This is an implementation of the in-kernel module loader extending
      the try_inc_mod_count() primitive and making its use compulsory.
      This has the benifit of simplicity, and similarity to the existing
      scheme.  To reduce the cost of the constant increments and
      decrements, reference counters are lockless and per-cpu.
      
      Eliminated (coming in following patches):
       o Modversions
       o Module parameters
       o kallsyms
       o EXPORT_SYMBOL_GPL and MODULE_LICENCE checks
       o DEVICE_TABLE support.
      
      New features:
       o Typesafe symbol_get/symbol_put
       o Single "insert this module" syscall interface allows trivial userspace.
       o Raceless loading and unloading
      
      You will need the trivial replacement module utilities from:
      	http://ozlabs.org/~rusty/module-init-tools-0.6.tar.gz
      aa65be3f
  35. 29 Oct, 2002 1 commit