aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/structleak_plugin.c
diff options
context:
space:
mode:
authorYazen Ghannam <[email protected]>2024-03-19 11:33:21 +0000
committerBorislav Petkov (AMD) <[email protected]>2024-03-25 18:00:38 +0000
commit4b0e527c9970a15ac9ec8fc44af957725b854c29 (patch)
tree05bab979ae0566af6c6ef9a644c34a7047da1c27 /scripts/gcc-plugins/structleak_plugin.c
parentLinux 6.9-rc1 (diff)
downloadkernel-4b0e527c9970a15ac9ec8fc44af957725b854c29.tar.gz
kernel-4b0e527c9970a15ac9ec8fc44af957725b854c29.zip
RAS/AMD/FMPM: Avoid NULL ptr deref in get_saved_records()
An old, invalid record should be cleared and skipped. Currently, the record is cleared in ERST, but it is not skipped. This leads to a NULL pointer dereference when attempting to copy the old record to the new record. Continue the loop after clearing an old, invalid record to skip it. Fixes: 6f15e617cc99 ("RAS: Introduce a FRU memory poison manager") Signed-off-by: Yazen Ghannam <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Tested-by: Muralidhara M K <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions