]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/mce: Include a MCi_MISC value in faked mce logs
authorTony Luck <tony.luck@intel.com>
Thu, 27 May 2021 22:28:46 +0000 (15:28 -0700)
committerBorislav Petkov <bp@suse.de>
Fri, 28 May 2021 14:57:16 +0000 (16:57 +0200)
commit40cd0aae5957ec175b73dc17dce6079d33fa74f6
treee22af5aff5b90b2dc4bc6af1ec660745126fec9c
parent94a311ce248e0b53c76e110fd00511af47b72ffb
x86/mce: Include a MCi_MISC value in faked mce logs

When BIOS reports memory errors to Linux using the ACPI/APEI
error reporting method Linux creates a "struct mce" to pass
to the normal reporting code path.

The constructed record doesn't include a value for the "misc"
field of the structure, and so mce_usable_address() says this
record doesn't include a valid address.

Net result is that functions like uc_decode_notifier() will
just ignore this record instead of taking action to offline
a page.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210527222846.931851-1-tony.luck@intel.com
arch/x86/kernel/cpu/mce/apei.c