projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
723f282
)
x86/mm/64: Remove the last VM_BUG_ON() from the TLB code
author
Andy Lutomirski
<luto@kernel.org>
Sat, 14 Oct 2017 16:59:49 +0000
(09:59 -0700)
committer
Ingo Molnar
<mingo@kernel.org>
Wed, 18 Oct 2017 13:25:02 +0000
(15:25 +0200)
Let's avoid hard-to-diagnose crashes in the future.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link:
http://lkml.kernel.org/r/f423bbc97864089fbdeb813f1ea126c6eaed844a.1508000261.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/tlb.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/mm/tlb.c
b/arch/x86/mm/tlb.c
index 658bf00905651624945a4097c3098b94e6645908..7db23f9f804e75f1986dffb954cdfd6a824b4dfc 100644
(file)
--- a/
arch/x86/mm/tlb.c
+++ b/
arch/x86/mm/tlb.c
@@
-147,8
+147,8
@@
void switch_mm_irqs_off(struct mm_struct *prev, struct mm_struct *next,
this_cpu_write(cpu_tlbstate.is_lazy, false);
if (real_prev == next) {
- VM_
BUG
_ON(this_cpu_read(cpu_tlbstate.ctxs[prev_asid].ctx_id) !=
- next->context.ctx_id);
+ VM_
WARN
_ON(this_cpu_read(cpu_tlbstate.ctxs[prev_asid].ctx_id) !=
+
next->context.ctx_id);
/*
* We don't currently support having a real mm loaded without