From: Andy Lutomirski Date: Mon, 23 Mar 2015 19:32:54 +0000 (-0700) Subject: x86/asm/entry: Check for syscall exit work with IRQs disabled X-Git-Tag: omap-for-v4.1/fixes-rc1~252^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3494a4ab20f6bdf74cdf2badf7918bb65ee8a00;p=pandora-kernel.git 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 Reported-by: Takashi Iwai Signed-off-by: Andy Lutomirski Acked-by: Denys Vlasenko Cc: Jiri Kosina Cc: Tejun Heo Fixes: 96b6352c1271 ("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 --- Reading git-diff-tree failed