diff options
author | Manivannan Sadhasivam <[email protected]> | 2023-01-18 20:38:50 +0530 |
---|---|---|
committer | Borislav Petkov (AMD) <[email protected]> | 2023-01-20 19:47:34 +0100 |
commit | 977c6ba624f24ae20cf0faee871257a39348d4a9 (patch) | |
tree | ab125c02b85238fc932473ed727e747fcd16a9a9 /include/linux/overflow.h | |
parent | cec669ff716cc83505c77b242aecf6f7baad869d (diff) |
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 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions