Commit b8151303 authored by Tony Luck's avatar Tony Luck Committed by Zhiquan Li
Browse files

x86/sgx: Add check for SGX pages to ghes_do_memory_failure()

mainline inclusion
from mainline-5.17
commit 3ad6fd77
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I5EZFM


CVE: NA

Intel-SIG: commit 3ad6fd77 x86/sgx: Add check for SGX pages to
ghes_do_memory_failure().
Backport for SGX MCA recovery co-existence support

--------------------------------

SGX EPC pages do not have a "struct page" associated with them so the
pfn_valid() sanity check fails and results in a warning message to
the console.

Add an additional check to skip the warning if the address of the error
is in an SGX EPC page.

Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
Signed-off-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
Tested-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Link: https://lkml.kernel.org/r/20211026220050.697075-8-tony.luck@intel.com


Signed-off-by: default avatarZhiquan Li <zhiquan1.li@intel.com>
parent 3f72e50d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment