Oren Laadan 9a5d3023e6 [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>
2006-01-08 20:14:00 -08:00
..
2006-01-08 20:13:48 -08:00
2006-01-06 08:33:49 -08:00
2006-01-08 20:13:48 -08:00
2006-01-08 20:13:58 -08:00
2006-01-08 20:13:55 -08:00
2006-01-06 08:33:53 -08:00
2006-01-08 20:13:40 -08:00
2006-01-08 20:13:52 -08:00
2006-01-08 20:13:40 -08:00
2006-01-08 20:13:48 -08:00