Sasha Levin 823dd3224a signals: avoid random wakeups in sigsuspend()
A random wakeup can get us out of sigsuspend() without TIF_SIGPENDING
being set.

Avoid that by making sure we were signaled, like sys_pause() does.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-02-05 18:10:40 -08:00
..
2015-12-04 22:46:25 +01:00
2016-01-26 11:08:35 +01:00
2015-04-11 22:27:55 -04:00
2015-11-19 17:51:48 +01:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2014-08-08 15:57:18 -07:00
2015-12-14 14:54:37 -05:00
2015-04-12 21:03:31 +02:00
2016-01-14 16:00:49 -08:00
2016-01-26 11:08:35 +01:00
2015-11-23 09:44:58 +01:00
2016-01-31 09:10:19 -08:00
2014-12-04 14:34:54 -05:00
2015-01-17 10:02:23 +13:00
2016-01-22 18:04:28 -05:00
2014-12-10 17:41:10 -08:00