Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Oct 31, 2011
  1. kernel: ksysfs.c is implicitly using stat.h

    Paul Gortmaker authored
    With the module.h usage cleanup, we'll get this:
    
    kernel/ksysfs.c:161: error: ‘S_IRUGO’ undeclared here (not in a function)
    make[2]: *** [kernel/ksysfs.o] Error 1
    
    Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
  2. kernel: Map most files to use export.h instead of module.h

    Paul Gortmaker authored
    The changed files were only including linux/module.h for the
    EXPORT_SYMBOL infrastructure, and nothing else.  Revector them
    onto the isolated export header for faster compile times.
    
    Nothing to see here but a whole lot of instances of:
    
      -#include <linux/module.h>
      +#include <linux/export.h>
    
    This commit is only changing the kernel dir; next targets
    will probably be mm, fs, the arch dirs, etc.
    
    Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Commits on Apr 19, 2011
  1. @lnussel @gregkh

    kernel/ksysfs.c: expose file_caps_enabled in sysfs

    lnussel authored gregkh committed
    A kernel booted with no_file_caps allows to install fscaps on a binary
    but doesn't actually honor the fscaps when running the binary. Userspace
    currently has no sane way to determine whether installing fscaps
    actually has any effect. Since parsing /proc/cmdline is fragile this
    patch exposes the current setting (1 or 0) via /sys/kernel/fscaps
    
    Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Commits on May 21, 2010
  1. @chriswright @gregkh

    sysfs: add struct file* to bin_attr callbacks

    chriswright authored gregkh committed
    This allows bin_attr->read,write,mmap callbacks to check file specific data
    (such as inode owner) as part of any privilege validation.
    
    Signed-off-by: Chris Wright <chrisw@sous-sol.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Commits on Mar 8, 2010
  1. Merge branch 'for-next' into for-linus

    Jiri Kosina authored
    Conflicts:
    	Documentation/filesystems/proc.txt
    	arch/arm/mach-u300/include/mach/debug-macro.S
    	drivers/net/qlge/qlge_ethtool.c
    	drivers/net/qlge/qlge_main.c
    	drivers/net/typhoon.c
Commits on Feb 5, 2010
  1. fix comment typo boo -> boot in ksysfs.c

    Thadeu Lima de Souza Cascardo authored Jiri Kosina committed
    Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
    Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Commits on Jan 21, 2010
  1. @giani

    sched: Remove USER_SCHED

    giani authored Ingo Molnar committed
    Remove the USER_SCHED feature. It has been scheduled to be removed in
    2.6.34 as per http://marc.info/?l=linux-kernel&m=125728479022976&w=2
    
    Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>
    Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
    LKML-Reference: <1263990378.24844.3.camel@localhost>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
Commits on Dec 16, 2009
  1. @torvalds

    kexec: premit reduction of the reserved memory size

    Amerigo Wang authored torvalds committed
    Implement shrinking the reserved memory for crash kernel, if it is more
    than enough.
    
    For example, if you have already reserved 128M, now you just want 100M,
    you can do:
    
    # echo $((100*1024*1024)) > /sys/kernel/kexec_crash_size
    
    Note, you can only do this before loading the crash kernel.
    
    Signed-off-by: WANG Cong <amwang@redhat.com>
    Cc: Neil Horman <nhorman@redhat.com>
    Acked-by: Eric W. Biederman <ebiederm@xmission.com>
    Cc: Andi Kleen <andi@firstfloor.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Jan 6, 2009
  1. @ming1 @gregkh

    kernel/ksysfs.c:fix dependence on CONFIG_NET

    ming1 authored gregkh committed
    Access to uevent_seqnum and uevent_helper does not need to
    depend on CONFIG_NET, so remove it.
    
    Signed-off-by: Ming Lei <tom.leiming@gmail.com>
    Cc: Kay Sievers <kay.sievers@vrfy.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Commits on Oct 16, 2008
  1. @torvalds

    profiling: dynamically enable readprofile at runtime

    Dave Hansen authored torvalds committed
    Way too often, I have a machine that exhibits some kind of crappy
    behavior.  The CPU looks wedged in the kernel or it is spending way too
    much system time and I wonder what is responsible.
    
    I try to run readprofile.  But, of course, Ubuntu doesn't enable it by
    default.  Dang!
    
    The reason we boot-time enable it is that it takes a big bufffer that we
    generally can only bootmem alloc.  But, does it hurt to at least try and
    runtime-alloc it?
    
    To use:
    echo 2 > /sys/kernel/profile
    
    Then run readprofile like normal.
    
    This should fix the compile issue with allmodconfig.  I've compile-tested
    on a bunch more configs now including a few more architectures.
    
    Signed-off-by: Dave Hansen <dave@linux.vnet.ibm.com>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Jan 25, 2008
  1. @gregkh

    Kobject: convert remaining kobject_unregister() to kobject_put()

    gregkh authored
    There is no need for kobject_unregister() anymore, thanks to Kay's
    kobject cleanup changes, so replace all instances of it with
    kobject_put().
    
    
    Cc: Kay Sievers <kay.sievers@vrfy.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  2. @gregkh

    kobject: convert kernel_kset to be a kobject

    gregkh authored
    kernel_kset does not need to be a kset, but a much simpler kobject now
    that we have kobj_attributes.
    
    We also rename kernel_kset to kernel_kobj to catch all users of this
    symbol with a build error instead of an easy-to-ignore build warning.
    
    Cc: Kay Sievers <kay.sievers@vrfy.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  3. @kaysievers @gregkh

    fix struct user_info export's sysfs interaction

    kaysievers authored gregkh committed
    Clean up the use of ksets and kobjects. Kobjects are instances of
    objects (like struct user_info), ksets are collections of objects of a
    similar type (like the uids directory containing the user_info directories).
    So, use kobjects for the user_info directories, and a kset for the "uids"
    directory.
    
    On object cleanup, the final kobject_put() was missing.
    
    Cc: Dhaval Giani <dhaval@linux.vnet.ibm.com>
    Cc: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
    Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  4. @kaysievers @gregkh

    Driver Core: switch all dynamic ksets to kobj_sysfs_ops

    kaysievers authored gregkh committed
    Switch all dynamically created ksets, that export simple attributes,
    to kobj_attribute from subsys_attribute. Struct subsys_attribute will
    be removed.
    
    Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
    Cc: Mike Halcrow <mhalcrow@us.ibm.com>
    Cc: Phillip Hellewell <phillip@hellewell.homeip.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  5. @gregkh

    kset: convert kernel_subsys to use kset_create

    gregkh authored
    Dynamically create the kset instead of declaring it statically.  We also
    rename kernel_subsys to kernel_kset to catch all users of this symbol
    with a build error instead of an easy-to-ignore build warning.
    
    Cc: Kay Sievers <kay.sievers@vrfy.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  6. @gregkh

    kobject: remove struct kobj_type from struct kset

    gregkh authored
    We don't need a "default" ktype for a kset.  We should set this
    explicitly every time for each kset.  This change is needed so that we
    can make ksets dynamic, and cleans up one of the odd, undocumented
    assumption that the kset/kobject/ktype model has.
    
    This patch is based on a lot of help from Kay Sievers.
    
    Nasty bug in the block code was found by Dave Young
    <hidave.darkstar@gmail.com>
    
    Cc: Kay Sievers <kay.sievers@vrfy.org>
    Cc: Dave Young <hidave.darkstar@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Commits on Oct 17, 2007
  1. @oomichi

    add-vmcore: cleanup the coding style according to Andrew's comments

    oomichi authored Linus Torvalds committed
    [1/3] Cleanup the coding style according to Andrew's comments:
    http://lists.infradead.org/pipermail/kexec/2007-August/000522.html
    - vmcoreinfo_append_str() should have suitable __attribute__s so that
      the compiler can check its use.
    - vmcoreinfo_max_size should have size_t.
    - Use get_seconds() instead of xtime.tv_sec.
    - Use init_uts_ns.name.release instead of UTS_RELEASE.
    
    Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  2. @oomichi

    Add vmcoreinfo

    oomichi authored Linus Torvalds committed
    This patch set frees the restriction that makedumpfile users should install a
    vmlinux file (including the debugging information) into each system.
    
    makedumpfile command is the dump filtering feature for kdump.  It creates a
    small dumpfile by filtering unnecessary pages for the analysis.  To
    distinguish unnecessary pages, it needs a vmlinux file including the debugging
    information.  These days, the debugging package becomes a huge file, and it is
    hard to install it into each system.
    
    To solve the problem, kdump developers discussed it at lkml and kexec-ml.  As
    the result, we reached the conclusion that necessary information for dump
    filtering (called "vmcoreinfo") should be embedded into the first kernel file
    and it should be accessed through /proc/vmcore during the second kernel.
    (http://www.uwsg.iu.edu/hypermail/linux/kernel/0707.0/1806.html)
    
    Dan Aloni created the patch set for the above implementation.
    (http://www.uwsg.iu.edu/hypermail/linux/kernel/0707.1/1053.html)
    
    And I updated it for multi architectures and memory models.
    (http://lists.infradead.org/pipermail/kexec/2007-August/000479.html)
    
    Signed-off-by: Dan Aloni <da-x@monatomic.org>
    Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
    Signed-off-by: Bernhard Walle <bwalle@suse.de>
    Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Oct 15, 2007
  1. sched: group scheduling, sysfs tunables

    Dhaval Giani authored Ingo Molnar committed
    Add tunables in sysfs to modify a user's cpu share.
    
    A directory is created in sysfs for each new user in the system.
    
    	/sys/kernel/uids/<uid>/cpu_share
    
    Reading this file returns the cpu shares granted for the user.
    Writing into this file modifies the cpu share for the user. Only an
    administrator is allowed to modify a user's cpu share.
    
    Ex:
    	# cd /sys/kernel/uids/
    	# cat 512/cpu_share
    	1024
    	# echo 2048 > 512/cpu_share
    	# cat 512/cpu_share
    	2048
    	#
    
    Signed-off-by: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
    Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
Commits on Jul 20, 2007
  1. FRV: Fix linkage problems

    David Howells authored Linus Torvalds committed
    Make it possible to use __start_notes and __stop_notes without getting a GPREL
    overflow error from the FRV linker.
    
    Small variables that would otherwise be in .data or .bss may, depending on the
    arch, be placed in special sections (.sdata or .sbss) that permit single
    instruction references on fixed instruction width machines.
    
    __start_notes and __stop_notes aren't really char variables, and certainly
    don't refer to data in .data or .bss.  Making them type "void" fools the
    compiler into not assuming anything about them.
    
    Signed-off-by: David Howells <dhowells@redhat.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Jul 19, 2007
  1. Add /sys/kernel/notes

    Roland McGrath authored Linus Torvalds committed
    This patch adds the /sys/kernel/notes magic file.  Reading this delivers the
    contents of the kernel's .notes section.  This lets userland easily glean any
    detailed information about the running kernel's build that was stored there at
    compile time.
    
    Signed-off-by: Roland McGrath <roland@redhat.com>
    Cc: Andi Kleen <ak@suse.de>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Richard Henderson <rth@twiddle.net>
    Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
    Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
    Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on May 3, 2007
  1. @gregkh

    remove "struct subsystem" as it is no longer needed

    gregkh authored
    We need to work on cleaning up the relationship between kobjects, ksets and
    ktypes.  The removal of 'struct subsystem' is the first step of this,
    especially as it is not really needed at all.
    
    Thanks to Kay for fixing the bugs in this patch.
    
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Commits on Jun 30, 2006
  1. @AdrianBunk

    Remove obsolete #include <linux/config.h>

    Jörn Engel authored AdrianBunk committed
    Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
Commits on Jun 23, 2006
  1. @JeffMoyer

    [PATCH] Add a sysfs file to determine if a kexec kernel is loaded

    JeffMoyer authored Linus Torvalds committed
    Create two files in /sys/kernel, kexec_loaded and kexec_crash_loaded.  Each
    file contains a simple boolean value indicating whether the relevant kernel
    has been loaded into memory.  The motivation for this is geared around
    support.
    
    Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
    Cc: "Eric W. Biederman" <ebiederm@xmission.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Commits on Mar 24, 2006
  1. [PATCH] fix build error if CONFIG_SYSFS=n

    Andrew Morton authored Linus Torvalds committed
    uevent_seqnum and uevent_helper are only defined if CONFIG_HOTPLUG=y,
    CONFIG_NET=n.
    
    (I stole this back from Greg's tree - it makes allnoconfig work).
    
    Cc: Greg KH <greg@kroah.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Commits on Mar 20, 2006
  1. @gregkh

    [PATCH] kobject: fix build error if CONFIG_SYSFS=n

    Jun'ichi Nomura authored gregkh committed
    Moving uevent_seqnum and uevent_helper to kobject_uevent.c
    because they are used even if CONFIG_SYSFS=n
    while kernel/ksysfs.c is built only if CONFIG_SYSFS=y,
    
    Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Commits on Jan 10, 2006
  1. [PATCH] kdump: export per cpu crash notes pointer through sysfs

    Vivek Goyal authored Linus Torvalds committed
    - Kexec on panic functionality allocates memory for saving cpu registers in
      case of system crash event.  Address of this allocated memory needs to be
      exported to user space, which is used by kexec-tools.
    
    - Previously, a single /sys/kernel/crash_notes entry was being exported as
      memory allocated was a single continuous array.  Now memory allocation being
      dyanmic and per cpu based, address of per cpu buffer is exported through
      "/sys/devices/system/cpu/cpuX/crash_notes"
    
    Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
    Cc: Greg KH <greg@kroah.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Commits on Jan 5, 2006
  1. @gregkh

    [PATCH] kobject_uevent CONFIG_NET=n fix

    akpm@osdl.org authored gregkh committed
    lib/lib.a(kobject_uevent.o)(.text+0x25f): In function `kobject_uevent':
    : undefined reference to `__alloc_skb'
    lib/lib.a(kobject_uevent.o)(.text+0x2a1): In function `kobject_uevent':
    : undefined reference to `skb_over_panic'
    lib/lib.a(kobject_uevent.o)(.text+0x31d): In function `kobject_uevent':
    : undefined reference to `skb_over_panic'
    lib/lib.a(kobject_uevent.o)(.text+0x356): In function `kobject_uevent':
    : undefined reference to `netlink_broadcast'
    lib/lib.a(kobject_uevent.o)(.init.text+0x9): In function `kobject_uevent_init':
    : undefined reference to `netlink_kernel_create'
    make: *** [.tmp_vmlinux1] Error 1
    
    Netlink is unconditionally enabled if CONFIG_NET, so that's OK.
    
    kobject_uevent.o is compiled even if !CONFIG_HOTPLUG, which is lazy.
    
    Let's compound the sin.
    
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  2. @gregkh

    [PATCH] driver core: replace "hotplug" by "uevent"

    Kay Sievers authored gregkh committed
    Leave the overloaded "hotplug" word to susbsystems which are handling
    real devices. The driver core does not "plug" anything, it just exports
    the state to userspace and generates events.
    
    Signed-off-by: Kay Sievers <kay.sievers@suse.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  3. @gregkh

    [PATCH] add uevent_helper control in /sys/kernel/

    Kay Sievers authored gregkh committed
    This deprecates the /proc/sys/kernel/hotplug file, as all
    this stuff should be in /sys some day, right? :)
    In /sys/kernel/ we have now uevent_seqnum and uevent_helper.
    The seqnum is no longer used by udev, as the version for this
    kernel depends on netlink which events will never get
    out-of-order.
    
    Recent udev versions disable the /sbin/hotplug helper with
    an init script, cause it leads to OOM on big boxes by running
    hundreds of shells in parallel. It should be done now by:
      echo "" > /sys/kernel/uevent_helper
    
    (Note that "-n" does not work, cause neighter proc nor sysfs
    support truncate().)
    
    Signed-off-by: Kay Sievers <kay.sievers@suse.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Commits on Jun 25, 2005
  1. [PATCH] Kdump: Export crash notes section address through sysfs

    Vivek Goyal authored Linus Torvalds committed
    o Following patch exports kexec global variable "crash_notes" to user space
      through sysfs as kernel attribute in /sys/kernel.
    
    Signed-off-by: Maneesh Soni <maneesh@in.ibm.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Commits on Apr 16, 2005
  1. Linux-2.6.12-rc2

    Linus Torvalds authored
    Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.
    
    Let it rip!
Something went wrong with that request. Please try again.