diff options
author | Nathan Lynch <nathanl@linux.ibm.com> | 2019-05-28 18:28:01 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-06-19 20:05:08 +1000 |
commit | 348ea30f51fc63ce3c7fd7dba6043e8e3ee0ef34 (patch) | |
tree | ad391ce2c50619edb86e197d51b62c5234e3b50f /mm/percpu-vm.c | |
parent | f474c28fbcbe42faca4eb415172c07d76adcb819 (diff) | |
download | linux-348ea30f51fc63ce3c7fd7dba6043e8e3ee0ef34.tar.bz2 |
powerpc/pseries: avoid blocking in irq when queuing hotplug events
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@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'mm/percpu-vm.c')
0 files changed, 0 insertions, 0 deletions