aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/bpf-script-example.c
diff options
context:
space:
mode:
authorManivannan Sadhasivam <[email protected]>2023-01-18 15:08:50 +0000
committerBorislav Petkov (AMD) <[email protected]>2023-01-20 18:47:34 +0000
commit977c6ba624f24ae20cf0faee871257a39348d4a9 (patch)
treeab125c02b85238fc932473ed727e747fcd16a9a9 /tools/perf/tests/bpf-script-example.c
parentEDAC/device: Respect any driver-supplied workqueue polling value (diff)
downloadkernel-977c6ba624f24ae20cf0faee871257a39348d4a9.tar.gz
kernel-977c6ba624f24ae20cf0faee871257a39348d4a9.zip
EDAC/qcom: Do not pass llcc_driv_data as edac_device_ctl_info's pvt_info
The memory for llcc_driv_data is allocated by the LLCC driver. But when it is passed as the private driver info to the EDAC core, it will get freed during the qcom_edac driver release. So when the qcom_edac driver gets probed again, it will try to use the freed data leading to the use-after-free bug. Hence, do not pass llcc_driv_data as pvt_info but rather reference it using the platform_data pointer in the qcom_edac driver. Fixes: 27450653f1db ("drivers: edac: Add EDAC driver support for QCOM SoCs") Reported-by: Steev Klimaszewski <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Tested-by: Steev Klimaszewski <[email protected]> # Thinkpad X13s Tested-by: Andrew Halaney <[email protected]> # sa8540p-ride Cc: <[email protected]> # 4.20 Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/tests/bpf-script-example.c')
0 files changed, 0 insertions, 0 deletions