aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorBorislav Petkov <[email protected]>2020-02-04 13:28:41 +0100
committerBorislav Petkov <[email protected]>2020-02-13 18:58:39 +0100
commit6e5cf31fbe651bed7ba1df768f2e123531132417 (patch)
tree71adfc2e4f338edc3cfbf90a0b724a387d72d8fa /tools/perf/scripts/python/export-to-sqlite.py
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9 (diff)
x86/mce/amd: Publish the bank pointer only after setup has succeeded
threshold_create_bank() creates a bank descriptor per MCA error thresholding counter which can be controlled over sysfs. It publishes the pointer to that bank in a per-CPU variable and then goes on to create additional thresholding blocks if the bank has such. However, that creation of additional blocks in allocate_threshold_blocks() can fail, leading to a use-after-free through the per-CPU pointer. Therefore, publish that pointer only after all blocks have been setup successfully. Fixes: 019f34fccfd5 ("x86, MCE, AMD: Move shared bank to node descriptor") Reported-by: Saar Amar <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: <[email protected]> Link: http://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions