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

2023-02-05 Thread Michael Ellerman
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

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

2023-01-21 Thread Nicholas Piggin
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