[PATCH v3] powerpc/pseries/mce: Avoid instrumentation in realmode

Sachin Sant sachinp at linux.ibm.com
Mon Sep 26 19:07:09 AEST 2022



> On 26-Sep-2022, at 11:48 AM, Ganesh Goudar <ganeshgr at linux.ibm.com> wrote:
> 
> Part of machine check error handling is done in realmode,
> As of now instrumentation is not possible for any code that
> runs in realmode.
> When MCE is injected on KASAN enabled kernel, crash is
> observed, Hence force inline or mark no instrumentation
> for functions which can run in realmode, to avoid KASAN
> instrumentation.
> 
> Signed-off-by: Ganesh Goudar <ganeshgr at linux.ibm.com>
> ---
> v2: Force inline few more functions.
> 
> v3: Adding noinstr to few functions instead of __always_inline.
> ---

Tested-by: Sachin Sant <sachinp at linux.ibm.com>

- Sachin


More information about the Linuxppc-dev mailing list