aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorAndy Lutomirski <[email protected]>2015-01-31 12:53:53 +0000
committerAndy Lutomirski <[email protected]>2015-02-01 12:02:53 +0000
commitb926e6f61a26036ee9eabe6761483954d481ad25 (patch)
tree0ed87a7d7acc4e8f6e1e443f032b2444fd8eaa1e /lib/mpi/mpi-cmp.c
parentMerge tag 'pr-20150114-x86-entry' of git://git.kernel.org/pub/scm/linux/kerne... (diff)
downloadkernel-b926e6f61a26036ee9eabe6761483954d481ad25.tar.gz
kernel-b926e6f61a26036ee9eabe6761483954d481ad25.zip
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 <[email protected]> Signed-off-by: Andy Lutomirski <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions