]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mce: Annotate mce_rd/wrmsrl() with noinstr
authorBorislav Petkov <bp@suse.de>
Mon, 14 Sep 2020 17:21:28 +0000 (19:21 +0200)
committerBorislav Petkov <bp@suse.de>
Fri, 18 Sep 2020 13:21:11 +0000 (15:21 +0200)
commitbc27521425f23e7b2b3318ff2aecf02d7c9e914d
tree8ba2bf230c803b9f1cb80f6648c1dc256f2c94ee
parent9e23412db28d70a008690da912907b6b48f07169
x86/mce: Annotate mce_rd/wrmsrl() with noinstr

They do get called from the #MC handler which is already marked
"noinstr".

Commit

  8f0ccae12a7e ("x86/mce: Make mce_rdmsrl() panic on an inaccessible MSR")

already got rid of the instrumentation in the MSR accessors, fix the
annotation now too, in order to get rid of:

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

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