1. 12 9月, 2009 12 次提交
  2. 11 9月, 2009 2 次提交
  3. 08 9月, 2009 1 次提交
    • L
      kmemleak: add clear command support · 30b37101
      Luis R. Rodriguez 提交于
      In an ideal world your kmemleak output will be small, when its
      not (usually during initial bootup) you can use the clear command
      to ingore previously reported and unreferenced kmemleak objects. We
      do this by painting all currently reported unreferenced objects grey.
      We paint them grey instead of black to allow future scans on the same
      objects as such objects could still potentially reference newly
      allocated objects in the future.
      
      To test a critical section on demand with a clean
      /sys/kernel/debug/kmemleak you can do:
      
      echo clear > /sys/kernel/debug/kmemleak
              test your kernel or modules
      echo scan > /sys/kernel/debug/kmemleak
      
      Then as usual to get your report with:
      
      cat /sys/kernel/debug/kmemleak
      Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      30b37101
  4. 07 9月, 2009 2 次提交
    • T
      ALSA: dummy - Fake buffer allocations · a68c4d11
      Takashi Iwai 提交于
      Instead of allocating the real buffers, use a fake buffer and ignore
      read/write in the dummy driver so that we can save the resources.
      For mmap, a single page (unique to the direction, though) is reused
      to all buffers.
      
      When the app requires to read/write the real buffers, pass fake_buffer=0
      module option at loading time.  This will get back to the old behavior.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      a68c4d11
    • D
      ALSA: hda/realtek: Added support for CLEVO M540R subsystem, 6 channel + digital · a65cc60f
      ddiaz@cenditel.gob.ve 提交于
      The model clevo-m540r was created with 6-channel and digital support. All
      functions verified except spdif. Tested with a VIT D2000 laptop which has:
      
      [lspci extract]
       Audio device [0403]: Intel Corporation 82801H (ICH8 Family) HD Audio
      Controller [8086:284b] (rev 03)
              Subsystem: CLEVO/KAPOK Computer Device [1558:5409]
      
      [/proc/asound/card0/codec\#0 header]
      Codec: Realtek ALC883
      Address: 0
      Function Id: 0x1
      Vendor Id: 0x10ec0883
      Subsystem Id: 0x15585409
      Revision Id: 0x100002
      
      [Added a comment about HP mute and the model description by tiwai]
      Signed-off-by: NDhionel Diaz <ddiaz@cenditel.gob.ve>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      a65cc60f
  5. 05 9月, 2009 1 次提交
  6. 03 9月, 2009 1 次提交
  7. 02 9月, 2009 4 次提交
    • D
      KEYS: Add a keyctl to install a process's session keyring on its parent [try #6] · ee18d64c
      David Howells 提交于
      Add a keyctl to install a process's session keyring onto its parent.  This
      replaces the parent's session keyring.  Because the COW credential code does
      not permit one process to change another process's credentials directly, the
      change is deferred until userspace next starts executing again.  Normally this
      will be after a wait*() syscall.
      
      To support this, three new security hooks have been provided:
      cred_alloc_blank() to allocate unset security creds, cred_transfer() to fill in
      the blank security creds and key_session_to_parent() - which asks the LSM if
      the process may replace its parent's session keyring.
      
      The replacement may only happen if the process has the same ownership details
      as its parent, and the process has LINK permission on the session keyring, and
      the session keyring is owned by the process, and the LSM permits it.
      
      Note that this requires alteration to each architecture's notify_resume path.
      This has been done for all arches barring blackfin, m68k* and xtensa, all of
      which need assembly alteration to support TIF_NOTIFY_RESUME.  This allows the
      replacement to be performed at the point the parent process resumes userspace
      execution.
      
      This allows the userspace AFS pioctl emulation to fully emulate newpag() and
      the VIOCSETTOK and VIOCSETTOK2 pioctls, all of which require the ability to
      alter the parent process's PAG membership.  However, since kAFS doesn't use
      PAGs per se, but rather dumps the keys into the session keyring, the session
      keyring of the parent must be replaced if, for example, VIOCSETTOK is passed
      the newpag flag.
      
      This can be tested with the following program:
      
      	#include <stdio.h>
      	#include <stdlib.h>
      	#include <keyutils.h>
      
      	#define KEYCTL_SESSION_TO_PARENT	18
      
      	#define OSERROR(X, S) do { if ((long)(X) == -1) { perror(S); exit(1); } } while(0)
      
      	int main(int argc, char **argv)
      	{
      		key_serial_t keyring, key;
      		long ret;
      
      		keyring = keyctl_join_session_keyring(argv[1]);
      		OSERROR(keyring, "keyctl_join_session_keyring");
      
      		key = add_key("user", "a", "b", 1, keyring);
      		OSERROR(key, "add_key");
      
      		ret = keyctl(KEYCTL_SESSION_TO_PARENT);
      		OSERROR(ret, "KEYCTL_SESSION_TO_PARENT");
      
      		return 0;
      	}
      
      Compiled and linked with -lkeyutils, you should see something like:
      
      	[dhowells@andromeda ~]$ keyctl show
      	Session Keyring
      	       -3 --alswrv   4043  4043  keyring: _ses
      	355907932 --alswrv   4043    -1   \_ keyring: _uid.4043
      	[dhowells@andromeda ~]$ /tmp/newpag
      	[dhowells@andromeda ~]$ keyctl show
      	Session Keyring
      	       -3 --alswrv   4043  4043  keyring: _ses
      	1055658746 --alswrv   4043  4043   \_ user: a
      	[dhowells@andromeda ~]$ /tmp/newpag hello
      	[dhowells@andromeda ~]$ keyctl show
      	Session Keyring
      	       -3 --alswrv   4043  4043  keyring: hello
      	340417692 --alswrv   4043  4043   \_ user: a
      
      Where the test program creates a new session keyring, sticks a user key named
      'a' into it and then installs it on its parent.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NJames Morris <jmorris@namei.org>
      ee18d64c
    • D
      KEYS: Add garbage collection for dead, revoked and expired keys. [try #6] · 5d135440
      David Howells 提交于
      Add garbage collection for dead, revoked and expired keys.  This involved
      erasing all links to such keys from keyrings that point to them.  At that
      point, the key will be deleted in the normal manner.
      
      Keyrings from which garbage collection occurs are shrunk and their quota
      consumption reduced as appropriate.
      
      Dead keys (for which the key type has been removed) will be garbage collected
      immediately.
      
      Revoked and expired keys will hang around for a number of seconds, as set in
      /proc/sys/kernel/keys/gc_delay before being automatically removed.  The default
      is 5 minutes.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NJames Morris <jmorris@namei.org>
      5d135440
    • T
      ALSA: hda - Add support of Alienware M17x laptop · 842ae638
      Takashi Iwai 提交于
      Added the quirk for Alienware M17x with IDT 92HD73* codec chip.
      It has two HP and one line-out jack, one mic jack, a built-in
      speaker and a built-in mic.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      842ae638
    • T
      libata: remove spindown skipping and warning · 051d9fbd
      Tejun Heo 提交于
      This was a hack to give userland shutdown tools time to drop manual
      spindown.  All popular distros updated quite some time ago and the due
      is well passed.  Drop it.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: Jaswinder Singh Rajput <jaswinder@kernel.org>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      051d9fbd
  8. 27 8月, 2009 2 次提交
    • T
      ALSA: Add debug module option · 36ce99c1
      Takashi Iwai 提交于
      Add debug module option to snd core.
      This controls the debug print level.  When CONFIG_SND_DEBUG_VERBOSE
      is set, you can suppress the debug messages by giving or changing this
      parameter to a lower value.  debug=0 means no debug messsages.
      As default, it's set to the verbose level 2.
      
      Since this option can be changed dynamically via sysfs file, you can
      suppress the verbose debug messages on the fly, which wasn't possible
      before.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      36ce99c1
    • C
      kmemleak: Dump object information on request · 189d84ed
      Catalin Marinas 提交于
      By writing dump=<addr> to the kmemleak file, kmemleak will look up an
      object with that address and dump the information it has about it to
      syslog. This is useful in debugging memory leaks.
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      189d84ed
  9. 26 8月, 2009 2 次提交
    • J
      tracing: Add vim script to enable folding for function_graph traces · 6591b493
      Josh Triplett 提交于
      function_graph traces look like nested function calls, complete with
      braces denoting the start and end of functions.  function-graph-fold.vim
      teaches vim how to fold these functions, to make it more convenient to
      browse them.
      
      To use, :source function-graph-fold.vim while viewing a function_graph
      trace, or use "view -S function-graph-fold.vim some-trace" to load it
      from the command-line together with a trace.  You can then use the usual
      vim fold commands, such as "za", to open and close nested functions.
      While closed, a fold will show the total time taken for a call, as would
      normally appear on the line with the closing brace.  Folded functions
      will not include finish_task_switch(), so folding should remain
      relatively sane even through a context switch.
      
      Note that this will almost certainly only work well with a single-CPU
      trace (e.g. trace-cmd report --cpu 1).  It also takes some time to run
      (a few seconds for a large trace on my laptop).  Nevertheless, I found
      it very handy to get an overview of a trace and then drill down on
      problematic calls.
      Signed-off-by: NJosh Triplett <josh@joshtriplett.org>
      LKML-Reference: <20090806145701.GB7661@feather>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      6591b493
    • T
      ALSA: hda - Add / fix model entries for HD-audio driver · e2e46569
      Takashi Iwai 提交于
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      e2e46569
  10. 23 8月, 2009 2 次提交
    • P
      rcu: Remove CONFIG_PREEMPT_RCU · 6b3ef48a
      Paul E. McKenney 提交于
      Now that CONFIG_TREE_PREEMPT_RCU is in place, there is no
      further need for CONFIG_PREEMPT_RCU.  Remove it, along with
      whatever subtle bugs it may (or may not) contain.
      Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Cc: laijs@cn.fujitsu.com
      Cc: dipankar@in.ibm.com
      Cc: akpm@linux-foundation.org
      Cc: mathieu.desnoyers@polymtl.ca
      Cc: josht@linux.vnet.ibm.com
      Cc: dvhltc@us.ibm.com
      Cc: niv@us.ibm.com
      Cc: peterz@infradead.org
      Cc: rostedt@goodmis.org
      LKML-Reference: <125097461396-git-send-email->
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      6b3ef48a
    • P
      rcu: Renamings to increase RCU clarity · d6714c22
      Paul E. McKenney 提交于
      Make RCU-sched, RCU-bh, and RCU-preempt be underlying
      implementations, with "RCU" defined in terms of one of the
      three.  Update the outdated rcu_qsctr_inc() names, as these
      functions no longer increment anything.
      Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Cc: laijs@cn.fujitsu.com
      Cc: dipankar@in.ibm.com
      Cc: akpm@linux-foundation.org
      Cc: mathieu.desnoyers@polymtl.ca
      Cc: josht@linux.vnet.ibm.com
      Cc: dvhltc@us.ibm.com
      Cc: niv@us.ibm.com
      Cc: peterz@infradead.org
      Cc: rostedt@goodmis.org
      LKML-Reference: <12509746132696-git-send-email->
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      d6714c22
  11. 20 8月, 2009 2 次提交
  12. 19 8月, 2009 1 次提交
    • K
      mm: revert "oom: move oom_adj value" · 0753ba01
      KOSAKI Motohiro 提交于
      The commit 2ff05b2b (oom: move oom_adj value) moveed the oom_adj value to
      the mm_struct.  It was a very good first step for sanitize OOM.
      
      However Paul Menage reported the commit makes regression to his job
      scheduler.  Current OOM logic can kill OOM_DISABLED process.
      
      Why? His program has the code of similar to the following.
      
      	...
      	set_oom_adj(OOM_DISABLE); /* The job scheduler never killed by oom */
      	...
      	if (vfork() == 0) {
      		set_oom_adj(0); /* Invoked child can be killed */
      		execve("foo-bar-cmd");
      	}
      	....
      
      vfork() parent and child are shared the same mm_struct.  then above
      set_oom_adj(0) doesn't only change oom_adj for vfork() child, it's also
      change oom_adj for vfork() parent.  Then, vfork() parent (job scheduler)
      lost OOM immune and it was killed.
      
      Actually, fork-setting-exec idiom is very frequently used in userland program.
      We must not break this assumption.
      
      Then, this patch revert commit 2ff05b2b and related commit.
      
      Reverted commit list
      ---------------------
      - commit 2ff05b2b (oom: move oom_adj value from task_struct to mm_struct)
      - commit 4d8b9135 (oom: avoid unnecessary mm locking and scanning for OOM_DISABLE)
      - commit 81236810 (oom: only oom kill exiting tasks with attached memory)
      - commit 933b787b (mm: copy over oom_adj value at fork time)
      Signed-off-by: NKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Cc: Paul Menage <menage@google.com>
      Cc: David Rientjes <rientjes@google.com>
      Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Cc: Rik van Riel <riel@redhat.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Nick Piggin <npiggin@suse.de>
      Cc: Mel Gorman <mel@csn.ul.ie>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0753ba01
  13. 18 8月, 2009 1 次提交
  14. 14 8月, 2009 3 次提交
  15. 12 8月, 2009 1 次提交
  16. 10 8月, 2009 3 次提交
    • R
      documentation: register ioctl entry of nilfs2 · 1392e3b3
      Ryusuke Konishi 提交于
      This will register the ioctl range used by nilfs2 file system to the
      table listed in Documentation/ioctl/ioctl-number.txt.
      Signed-off-by: NRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1392e3b3
    • T
      sound: make OSS device number claiming optional and schedule its removal · 93fe4483
      Tejun Heo 提交于
      If any OSS support is enabled, regardless of built-in or module,
      sound_core claims full OSS major number (that is, the old 0-255
      region) to trap open attempts and request sound modules using custom
      module aliases.  This feature is redundant as chrdev already has such
      mechanism.  This preemptive claiming prevents alternative OSS
      implementation.
      
      The custom module aliases are scheduled to be removed and the previous
      patch made soundcore emit the standard chrdev aliases too to help
      transition.
      
      This patch schedule the feature for removal in a year and makes it
      optional so that developers and distros can try new things in the
      meantime without rebuilding the kernel.  The pre-claiming can be
      turned off by using SOUND_OSS_CORE_PRECLAIM and/or kernel parameter
      soundcore.preclaim_oss.
      
      As this allows sound minors to be individually grabbed by other users,
      this patch updates sound_insert_unit() such that if registering
      individual device region fails, it tries the next available slot.
      
      For details on removal plan, please read the entry added by this patch
      in feature-removal-schedule.txt .
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      93fe4483
    • T
      SUNRPC: convert some sysctls into module parameters · cbf11071
      Trond Myklebust 提交于
      Parameters like the minimum reserved port, and the number of slot entries
      should really be module parameters rather than sysctls.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      cbf11071