]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f205944cc51a62421861fe9f043cadeb1227431
treebae72a448f5d5f37fb5c762a4c336fe731523dfd
parenta0f1e98ad6c321a416b1c873ba25b7a5f8599ee7
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