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

2024-02-12 Thread Mahesh J Salgaonkar
On 2024-02-12 08:06:25 Mon, Christophe Leroy wrote: > > > Le 05/02/2024 à 06:36, Mahesh Salgaonkar a écrit : > > [Vous ne recevez pas souvent de courriers de mah...@linux.ibm.com. > > Découvrez pourquoi ceci est important à > > https://aka.ms/LearnAboutSenderIdentification ] > > > > nmi_enter(

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

2024-02-12 Thread Christophe Leroy
Le 05/02/2024 à 06:36, Mahesh Salgaonkar a écrit : > [Vous ne recevez pas souvent de courriers de mah...@linux.ibm.com. Découvrez > pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] > > nmi_enter()/nmi_exit() touches per cpu variables which can lead to kernel > crash

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

2024-02-04 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 whi