summaryrefslogtreecommitdiffstats
path: root/drivers/firewire/sbp2.c
diff options
context:
space:
mode:
authorOleg Nesterov2012-03-19 17:03:41 +0100
committerLinus Torvalds2012-03-20 22:16:50 +0100
commitb6e238dceed36891cc633167afe7151f1f3d83c5 (patch)
treeeef4928c1a0cb1b56eb20f8d0ee592709d533f10 /drivers/firewire/sbp2.c
parentexit_signal: simplify the "we have changed execution domain" logic (diff)
downloadkernel-qcow2-linux-b6e238dceed36891cc633167afe7151f1f3d83c5.tar.gz
kernel-qcow2-linux-b6e238dceed36891cc633167afe7151f1f3d83c5.tar.xz
kernel-qcow2-linux-b6e238dceed36891cc633167afe7151f1f3d83c5.zip
exit_signal: fix the "parent has changed security domain" logic
exit_notify() changes ->exit_signal if the parent already did exec. This doesn't really work, we are not going to send the signal now if there is another live thread or the exiting task is traced. The parent can exec before the last dies or the tracer detaches. Move this check into do_notify_parent() which actually sends the signal. The user-visible change is that we do not change ->exit_signal, and thus the exiting task is still "clone children" for do_wait()->eligible_child(__WCLONE). Hopefully this is fine, the current logic is racy anyway. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/firewire/sbp2.c')
0 files changed, 0 insertions, 0 deletions