git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86: Barf when vmalloc and kmemcheck faults happen in NMI
[pandora-kernel.git]
/
arch
/
x86
/
mm
/
kmemcheck
/
kmemcheck.c
diff --git
a/arch/x86/mm/kmemcheck/kmemcheck.c
b/arch/x86/mm/kmemcheck/kmemcheck.c
index
b3b531a
..
d87dd6d
100644
(file)
--- a/
arch/x86/mm/kmemcheck/kmemcheck.c
+++ b/
arch/x86/mm/kmemcheck/kmemcheck.c
@@
-631,6
+631,8
@@
bool kmemcheck_fault(struct pt_regs *regs, unsigned long address,
if (!pte)
return false;
+ WARN_ON_ONCE(in_nmi());
+
if (error_code & 2)
kmemcheck_access(regs, address, KMEMCHECK_WRITE);
else