summaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorOleg Nesterov2008-04-30 09:52:51 +0200
committerLinus Torvalds2008-04-30 17:29:35 +0200
commit08d2c30ce98d274137f12b0a9b9c74137455922c (patch)
treecc649fd249aef0c4d227406b17a1a75c9d327e50 /kernel/fork.c
parentsignals: do_tkill: don't use tasklist_lock (diff)
downloadkernel-qcow2-linux-08d2c30ce98d274137f12b0a9b9c74137455922c.tar.gz
kernel-qcow2-linux-08d2c30ce98d274137f12b0a9b9c74137455922c.tar.xz
kernel-qcow2-linux-08d2c30ce98d274137f12b0a9b9c74137455922c.zip
signals: send_sig_info: don't take tasklist_lock
The comment in send_sig_info() is wrong, tasklist_lock can't help. The caller must ensure the task can't go away, otherwise ->sighand can be NULL even before we take the lock. p->sighand could be changed by exec(), but I can't imagine how it is possible to prevent exit(), but not exec(). Since the things seem to work, I assume all callers are correct. However, drm_vbl_send_signals() looks broken. block_all_signals() which is solely used by drm is definitely broken. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/fork.c')
0 files changed, 0 insertions, 0 deletions