Re: [PATCH] powerpc: Fix hard_irq_disable() with sanitizer

2022-09-02 Thread Michael Ellerman
On Tue, 23 Aug 2022 18:36:35 +0200, Christophe Leroy wrote: > As reported by Zhouyi Zhou, WRITE_ONCE() is not atomic > as expected when KASAN or KCSAN are compiled in. > > Fix it by re-implementing it using inline assembly. > > Applied to powerpc/fixes. [1/1] powerpc: Fix hard_irq_disable() wi

[PATCH] powerpc: Fix hard_irq_disable() with sanitizer

2022-08-23 Thread Christophe Leroy
As reported by Zhouyi Zhou, WRITE_ONCE() is not atomic as expected when KASAN or KCSAN are compiled in. Fix it by re-implementing it using inline assembly. Reported-by: Zhouyi Zhou Fixes: 077fc62b2b66 ("powerpc/irq: remove inline assembly in hard_irq_disable macro") Signed-off-by: Christophe Le