aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorNathan Lynch <[email protected]>2019-05-28 18:28:01 -0500
committerMichael Ellerman <[email protected]>2019-06-19 20:05:08 +1000
commit348ea30f51fc63ce3c7fd7dba6043e8e3ee0ef34 (patch)
treead391ce2c50619edb86e197d51b62c5234e3b50f /tools/perf/scripts/python/bin/stackcollapse-record
parentf474c28fbcbe42faca4eb415172c07d76adcb819 (diff)
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions