Oleg Nesterov 040b6362d5 tty: fix leakage of -ERESTARTSYS to userland
Spotted by Satoru Takeuchi.

kill_pgrp(task_pgrp(current)) sends the signal to the current's thread
group, but can choose any sub-thread as a target for signal_wake_up().
This means that job_control() and tty_check_change() may return
-ERESTARTSYS without signal_pending().

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-01 08:18:29 -07:00
..
2007-05-28 09:00:05 -04:00
2007-05-21 09:18:19 -07:00
2007-05-23 20:14:15 -07:00
2007-05-27 23:21:01 +02:00
2007-05-24 02:42:39 +02:00
2007-05-21 09:18:19 -07:00
2007-06-01 08:18:28 -07:00
2007-06-01 08:18:28 -07:00
2007-05-21 09:18:19 -07:00
2007-05-16 21:19:15 -07:00
2007-05-08 13:37:51 +10:00
2007-06-01 08:18:28 -07:00
2007-05-23 20:14:15 -07:00