]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Fix #UD vs WARN more
authorPeter Zijlstra <peterz@infradead.org>
Tue, 16 Jun 2020 11:28:36 +0000 (13:28 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 25 Jun 2020 11:45:40 +0000 (13:45 +0200)
commitdb82f1d1fa21e7fb1fe1c154ad21ed92dc31f0b9
tree4e543c91bc0dfa0e07b2593d24295ff609257fbd
parente6913127a31efd2603fc422ea6fca620c28477b0
x86/entry: Fix #UD vs WARN more

vmlinux.o: warning: objtool: exc_invalid_op()+0x47: call to probe_kernel_read() leaves .noinstr.text section

Since we use UD2 as a short-cut for 'CALL __WARN', treat it as such.
Have the bare exception handler do the report_bug() thing.

Fixes: 78cfc445c852 ("x86/entry: Treat BUG/WARN as NMI-like entries")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20200622114713.GE577403@hirez.programming.kicks-ass.net
arch/x86/kernel/traps.c