Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86/xen: Fix noinstr fail in exc_xen_unknown_trap()

Fix:

vmlinux.o: warning: objtool: exc_xen_unknown_trap()+0x7: call to printk() leaves .noinstr.text section

Fixes: 2e92493637a0 ("x86/xen: avoid warning in Xen pv guest with CONFIG_AMD_MEM_ENCRYPT enabled")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210621120120.606560778@infradead.org

authored by

Peter Zijlstra and committed by
Ingo Molnar
4c9c26f1 84e60065

+2
+2
arch/x86/xen/enlighten_pv.c
··· 592 592 DEFINE_IDTENTRY_RAW(exc_xen_unknown_trap) 593 593 { 594 594 /* This should never happen and there is no way to handle it. */ 595 + instrumentation_begin(); 595 596 pr_err("Unknown trap in Xen PV mode."); 596 597 BUG(); 598 + instrumentation_end(); 597 599 } 598 600 599 601 #ifdef CONFIG_X86_MCE