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-21 09:18:19 -07:00
2007-05-09 12:30:49 -07:00
2007-05-11 08:29:34 -07:00
2007-05-12 10:55:39 -07:00
2007-06-01 08:18:27 -07:00
2007-05-08 11:15:12 -07:00
2007-05-23 20:14:13 -07:00
2006-12-07 08:39:41 -08:00
2007-05-08 11:15:09 -07:00
2007-05-08 11:15:13 -07:00
2006-10-04 07:55:13 -07:00
2006-12-08 08:28:57 -08:00
2007-05-21 09:18:19 -07:00
2006-12-08 08:28:57 -08:00
2007-05-08 11:15:24 -07:00
2007-02-11 10:51:26 -08:00
2007-05-21 14:34:04 +09:00
2007-03-17 01:03:26 +00:00
2007-02-20 17:11:55 +00:00
2007-05-07 12:13:04 -07:00
2007-05-08 11:53:27 -07:00
2007-05-08 11:15:14 -07:00
2007-02-12 09:48:30 -08:00
2007-05-29 20:09:34 -07:00
2007-05-08 11:15:13 -07:00
2006-01-12 09:09:00 -08:00
2007-02-12 09:48:30 -08:00
2006-12-13 09:05:49 -08:00
2006-12-08 08:28:59 -08:00
2007-05-11 08:29:34 -07:00
2007-02-12 09:48:30 -08:00
2007-05-08 11:15:05 -07:00
2006-12-20 16:37:48 +11:00