EDAC/skx_common: Filter out the invalid address
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Thu, 7 Dec 2023 01:45:12 +0000 (09:45 +0800)
committerTony Luck <tony.luck@intel.com>
Tue, 2 Jan 2024 17:20:08 +0000 (09:20 -0800)
commit1e92af09fab1b5589f3a7ae68109e3c6a5ca6c6e
tree552b634cd9e85fce9452f72a99282e1416455139
parenta69badad736c0f460401080a67e6208e25ab25e2
EDAC/skx_common: Filter out the invalid address

Decoding an invalid address with certain firmware decoders could
cause a #PF (Page Fault) in the EFI runtime context, which could
subsequently hang the system. To make {i10nm,skx}_edac more robust
against such bogus firmware decoders, filter out invalid addresses
before allowing the firmware decoder to process them.

Suggested-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20231207014512.78564-1-qiuxu.zhuo@intel.com
drivers/edac/skx_common.c