[PATCH] powerpc/pseries: avoid blocking in irq when queuing hotplug events

Michael Ellerman patch-notifications at ellerman.id.au
Sun Jun 30 18:37:20 AEST 2019


On Tue, 2019-05-28 at 23:28:01 UTC, Nathan Lynch wrote:
> A couple of bugs in queue_hotplug_event():
> 
> 1. Unchecked kmalloc result which could lead to an oops.
> 2. Use of GFP_KERNEL allocations in interrupt context (this code's
>    only caller is ras_hotplug_interrupt()).
> 
> Use kmemdup to avoid open-coding the allocation+copy and check for
> failure; use GFP_ATOMIC for both allocations.
> 
> Ultimately it probably would be better to avoid or reduce allocations
> in this path if possible.
> 
> Signed-off-by: Nathan Lynch <nathanl at linux.ibm.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/348ea30f51fc63ce3c7fd7dba6043e8e3ee0ef34

cheers


More information about the Linuxppc-dev mailing list