Files
linux/arch/x86/kernel
Andy Lutomirski b3494a4ab2 x86/asm/entry: Check for syscall exit work with IRQs disabled
We currently have a race: if we're preempted during syscall
exit, we can fail to process syscall return work that is queued
up while we're preempted in ret_from_sys_call after checking
ti.flags.

Fix it by disabling interrupts before checking ti.flags.

Reported-by: Stefan Seyfried <stefan.seyfried@googlemail.com>
Reported-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Acked-by: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Tejun Heo <tj@kernel.org>
Fixes: 96b6352c12 ("x86_64, entry: Remove the syscall exit audit")
Link: http://lkml.kernel.org/r/189320d42b4d671df78c10555976bb10af1ffc75.1427137498.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-03-24 21:08:28 +01:00
..
2014-06-04 16:53:57 -07:00
2014-12-13 12:42:51 -08:00
2014-10-17 13:40:51 -07:00
2015-02-13 21:21:41 -08:00
2014-11-11 17:57:46 +01:00
2015-02-13 21:21:41 -08:00
2015-01-02 10:22:46 -08:00
2014-08-26 13:45:49 -04:00
2014-01-03 14:37:13 +00:00
2015-02-13 21:21:41 -08:00
2014-06-04 16:53:57 -07:00
2015-02-04 12:10:41 +01:00
2014-10-17 13:40:52 -07:00
2015-02-18 20:55:53 +01:00