diff options
author | Andy Lutomirski <luto@amacapital.net> | 2015-01-31 04:53:53 -0800 |
---|---|---|
committer | Andy Lutomirski <luto@amacapital.net> | 2015-02-01 04:02:53 -0800 |
commit | b926e6f61a26036ee9eabe6761483954d481ad25 (patch) | |
tree | 0ed87a7d7acc4e8f6e1e443f032b2444fd8eaa1e /net/unix/af_unix.c | |
parent | 772a9aca12567badb5b9caf2af249a5991f47ea8 (diff) |
x86, traps: Fix ist_enter from userspace
context_tracking_user_exit() has no effect if in_interrupt() returns true,
so ist_enter() didn't work. Fix it by calling exception_enter(), and thus
context_tracking_user_exit(), before incrementing the preempt count.
This also adds an assertion that will catch the problem reliably if
CONFIG_PROVE_RCU=y to help prevent the bug from being reintroduced.
Link: http://lkml.kernel.org/r/261ebee6aee55a4724746d0d7024697013c40a08.1422709102.git.luto@amacapital.net
Fixes: 959274753857 x86, traps: Track entry into and exit from IST context
Reported-and-tested-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions