linux/drivers/ras
Yazen Ghannam 4b0e527c99 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: 6f15e617cc ("RAS: Introduce a FRU memory poison manager")
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Muralidhara M K <muralidhara.mk@amd.com>
Link: https://lore.kernel.org/r/20240319113322.280096-2-yazen.ghannam@amd.com
2024-03-25 19:00:38 +01:00
..
amd RAS/AMD/FMPM: Avoid NULL ptr deref in get_saved_records() 2024-03-25 19:00:38 +01:00
cec.c RAS: Export helper to get ras_debugfs_dir 2024-03-01 16:55:10 +01:00
debugfs.c RAS: Export helper to get ras_debugfs_dir 2024-03-01 16:55:10 +01:00
debugfs.h RAS: Export helper to get ras_debugfs_dir 2024-03-01 16:55:10 +01:00
Kconfig RAS: Introduce a FRU memory poison manager 2024-02-20 18:56:15 +01:00
Makefile RAS: Introduce a FRU memory poison manager 2024-02-20 18:56:15 +01:00
ras.c RAS: Introduce AMD Address Translation Library 2024-01-24 12:49:35 +01:00