Re: [PATCH v2] x86/mce: work around an erratum on fast string copy instructions.

From: Borislav Petkov
Date: Fri Feb 18 2022 - 17:58:41 EST


On Fri, Feb 18, 2022 at 10:38:10PM +0000, Luck, Tony wrote:
> > If so, we can sandwich around it with nstrumentation_begin() and _end()...
>
> I guess so ... this stuff is all Greek to me.

roughly speaking... noinstr simply puts code in a special section
.noinstr.text and objtool checks whether that code calls code outside of
it. And noinstr is off-limits for tracing code.

The begin/end things are for ranges of code and work in a similar way,
see include/linux/instrumentation.h

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette