audit: Use rcu for task lookup protection
authorThomas Gleixner <tglx@linutronix.de>
Wed, 9 Dec 2009 14:19:41 +0000 (14:19 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 30 Oct 2010 12:45:42 +0000 (08:45 -0400)
commitab263f47c9781a644de8b28013434b645082922e
treebae72a448f5d5f37fb5c762a4c336fe731523dfd
parent207032051a5ed38df332729ba42e98e9a1e60434
audit: Use rcu for task lookup protection

Protect the task lookups in audit_receive_msg() with rcu_read_lock()
instead of tasklist_lock and use lock/unlock_sighand to protect
against the exit race.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Eric Paris <eparis@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/audit.c