x86/mce: Mark mce_panic() noinstr
authorBorislav Petkov <bp@suse.de>
Mon, 1 Nov 2021 12:39:35 +0000 (13:39 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 13 Dec 2021 13:13:01 +0000 (14:13 +0100)
commit3c7ce80a818fa7950be123cac80cd078e5ac1013
tree78605a0e8a91550d38046ac4354b980d0aa950d4
parent0a5b288e85bbef5227bb6397e31fcf1d7ba9142a
x86/mce: Mark mce_panic() noinstr

And allow instrumentation inside it because it does calls to other
facilities which will not be tagged noinstr.

Fixes

  vmlinux.o: warning: objtool: do_machine_check()+0xc73: call to mce_panic() leaves .noinstr.text section

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20211208111343.8130-8-bp@alien8.de
arch/x86/kernel/cpu/mce/core.c