Re: [PATCH] powerpc: Avoid nmi_enter/nmi_exit in real mode interrupt.

2022-02-27 Thread Christophe Leroy
Le 25/02/2022 à 11:24, Mahesh Salgaonkar a écrit : > nmi_enter()/nmi_exit() touches per cpu variables which can lead to kernel > crash when invoked during real mode interrupt handling (e.g. early HMI/MCE > interrupt handler) if percpu allocation comes from vmalloc area. > > Early HMI/MCE

Re: [PATCH] powerpc: Avoid nmi_enter/nmi_exit in real mode interrupt.

2022-02-25 Thread Christophe Leroy
Le 25/02/2022 à 11:24, Mahesh Salgaonkar a écrit : > nmi_enter()/nmi_exit() touches per cpu variables which can lead to kernel > crash when invoked during real mode interrupt handling (e.g. early HMI/MCE > interrupt handler) if percpu allocation comes from vmalloc area. > > Early HMI/MCE

[PATCH] powerpc: Avoid nmi_enter/nmi_exit in real mode interrupt.

2022-02-25 Thread Mahesh Salgaonkar
nmi_enter()/nmi_exit() touches per cpu variables which can lead to kernel crash when invoked during real mode interrupt handling (e.g. early HMI/MCE interrupt handler) if percpu allocation comes from vmalloc area. Early HMI/MCE handlers are called through DEFINE_INTERRUPT_HANDLER_NMI() wrapper