]> git.baikalelectronics.ru Git - kernel.git/commit
SELinux: hold tasklist_lock and siglock while waking wait_chldexit
authorEric Paris <eparis@redhat.com>
Tue, 4 Nov 2008 20:18:26 +0000 (15:18 -0500)
committerJames Morris <jmorris@namei.org>
Tue, 4 Nov 2008 21:44:11 +0000 (08:44 +1100)
commit37a62b377c6c718640727227a9b70788c047803a
treeb891d648d756d7195bab5c0f55f105cd00d8f94a
parenta5dc2b299c7ab97ec12b134446d928d91fff3f55
SELinux: hold tasklist_lock and siglock while waking wait_chldexit

SELinux has long been calling wake_up_interruptible() on
current->parent->signal->wait_chldexit without holding any locks.  It
appears that this operation should hold the tasklist_lock to dereference
current->parent and we should hold the siglock when waking up the
signal->wait_chldexit.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/hooks.c