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

x86/sgx: Add hook to error injection address validation

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


CVE: NA

Intel-SIG: commit c6acb1e7 x86/sgx: Add hook to error injection
address validation.
Backport for SGX MCA recovery co-existence support

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

SGX reserved memory does not appear in the standard address maps.

Add hook to call into the SGX code to check if an address is located
in SGX memory.

There are other challenges in injecting errors into SGX. Update the
documentation with a sequence of operations to inject.

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-7-tony.luck@intel.com


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