diff options
| author | Andy Lutomirski <luto@kernel.org> | 2017-10-14 12:59:49 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2017-10-18 09:25:02 -0400 |
| commit | e8b9b0cc8269c85d8167aaee024bfcbb4976c031 (patch) | |
| tree | b7ab717f5a8acc03d147aaf4d2e1d32cf9633669 | |
| parent | 723f2828a98c8ca19842042f418fb30dd8cfc0f7 (diff) | |
x86/mm/64: Remove the last VM_BUG_ON() from the TLB code
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>
| -rw-r--r-- | arch/x86/mm/tlb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c index 658bf0090565..7db23f9f804e 100644 --- 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, | |||
| 147 | this_cpu_write(cpu_tlbstate.is_lazy, false); | 147 | this_cpu_write(cpu_tlbstate.is_lazy, false); |
| 148 | 148 | ||
| 149 | if (real_prev == next) { | 149 | if (real_prev == next) { |
| 150 | VM_BUG_ON(this_cpu_read(cpu_tlbstate.ctxs[prev_asid].ctx_id) != | 150 | VM_WARN_ON(this_cpu_read(cpu_tlbstate.ctxs[prev_asid].ctx_id) != |
| 151 | next->context.ctx_id); | 151 | next->context.ctx_id); |
| 152 | 152 | ||
| 153 | /* | 153 | /* |
| 154 | * We don't currently support having a real mm loaded without | 154 | * We don't currently support having a real mm loaded without |
