summaryrefslogtreecommitdiffstats
path: root/kernel/sys.c
diff options
context:
space:
mode:
authorOren Laadan2006-01-08 10:03:51 +0100
committerLinus Torvalds2006-01-09 05:14:00 +0100
commit9a5d3023e626a0baf86ac6b892c983b3db13f22b (patch)
tree41d1be6513fc3a5367414654eeaf11bbb12d4814 /kernel/sys.c
parent[PATCH] cciss: adds MSI and MSI-X support (diff)
downloadkernel-qcow2-linux-9a5d3023e626a0baf86ac6b892c983b3db13f22b.tar.gz
kernel-qcow2-linux-9a5d3023e626a0baf86ac6b892c983b3db13f22b.tar.xz
kernel-qcow2-linux-9a5d3023e626a0baf86ac6b892c983b3db13f22b.zip
[PATCH] fork: fix race in setting child's pgrp and tty
In fork, child should recopy parent's pgrp/tty after it has tasklist_lock. Otherwise following a setpgid() on the parent, *after* copy_signal(), the child will own a stale pgrp (which may be reused); (eg. if copy_mm() sleeps a long while due to memory pressure). Similar issue for the tty. Signed-off-by: Oren Laadan <orenl@cs.columbia.edu> Cc: Oleg Nesterov <oleg@tv-sign.ru> Cc: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/sys.c')
0 files changed, 0 insertions, 0 deletions