aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2017-07-24 10:52:56 +0000
committerMartin K. Petersen <[email protected]>2017-07-27 01:51:24 +0000
commit8addebc14a322fa8ca67cd57c6038069acde8ddc (patch)
tree3fb5ee2628099fb5a7159e61d1acbcff180002ed /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parentscsi: qedi: Fix return code in qedi_ep_connect() (diff)
downloadkernel-8addebc14a322fa8ca67cd57c6038069acde8ddc.tar.gz
kernel-8addebc14a322fa8ca67cd57c6038069acde8ddc.zip
scsi: bnx2fc: Plug CPU hotplug race
bnx2fc_process_new_cqes() has protection against CPU hotplug, which relies on the per cpu thread pointer. This protection is racy because it happens only partially with the per cpu fp_work_lock held. If the CPU is unplugged after the lock is dropped, the wakeup code can dereference a NULL pointer or access freed and potentially reused memory. Restructure the code so the thread check and wakeup happens with the fp_work_lock held. Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Chad Dupuis <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions