aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorVaibhav Jain <[email protected]>2019-01-29 16:36:18 +0530
committerMichael Ellerman <[email protected]>2019-01-30 23:36:53 +1100
commitedeb304f659792fb5bab90d7d6f3408b4c7301fb (patch)
treea5aca84df7ced12a90718d96abedda53747a572d /tools/perf/scripts/python/bin/export-to-postgresql-report
parent9bf3d3c4e4fd82c7174f4856df372ab2a71005b9 (diff)
cxl: Wrap iterations over afu slices inside 'afu_list_lock'
Within cxl module, iteration over array 'adapter->afu' may be racy at few points as it might be simultaneously read during an EEH and its contents being set to NULL while driver is being unloaded or unbound from the adapter. This might result in a NULL pointer to 'struct afu' being de-referenced during an EEH thereby causing a kernel oops. This patch fixes this by making sure that all access to the array 'adapter->afu' is wrapped within the context of spin-lock 'adapter->afu_list_lock'. Fixes: 9e8df8a21963 ("cxl: EEH support") Cc: [email protected] # v4.3+ Acked-by: Andrew Donnellan <[email protected]> Acked-by: Frederic Barrat <[email protected]> Acked-by: Christophe Lombard <[email protected]> Signed-off-by: Vaibhav Jain <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions