[PATCH] powerpc/64s: Fix local irq disable when PMIs are disabled

Michael Ellerman patch-notifications at ellerman.id.au
Sun Feb 5 20:41:44 AEDT 2023


On Sat, 21 Jan 2023 19:53:52 +1000, Nicholas Piggin wrote:
> When PMI interrupts are soft-masked, local_irq_save() will clear the PMI
> mask bit, allowing PMIs in and causing a race condition. This causes a
> deadlock in native_hpte_insert via hash_preload, which depends on PMIs
> being disabled since commit 8b91cee5eadd ("powerpc/64s/hash: Make hash
> faults work in NMI context"). native_hpte_insert calls local_irq_save().
> It's possible the lpar hash code is also affected when tracing is
> enabled because __trace_hcall_entry() calls local_irq_save().
> 
> [...]

Applied to powerpc/fixes.

[1/1] powerpc/64s: Fix local irq disable when PMIs are disabled
      https://git.kernel.org/powerpc/c/bc88ef663265676419555df2dc469a471c0add31

cheers


More information about the Linuxppc-dev mailing list