diff options
author | Tony Luck <tony.luck@intel.com> | 2021-10-27 01:00:47 +0300 |
---|---|---|
committer | Dave Hansen <dave.hansen@linux.intel.com> | 2021-11-15 22:13:16 +0300 |
commit | a495cbdffa30558b34f3c95555cecc4fd9688039 (patch) | |
tree | d831c9c67c4e7827be5e7e301ddcbcfa2fdada28 /arch/x86/include/asm/processor.h | |
parent | 992801ae92431761b3d8ec88abd5793d154d34ac (diff) | |
download | linux-a495cbdffa30558b34f3c95555cecc4fd9688039.tar.xz |
x86/sgx: Add SGX infrastructure to recover from poison
Provide a recovery function sgx_memory_failure(). If the poison was
consumed synchronously then send a SIGBUS. Note that the virtual
address of the access is not included with the SIGBUS as is the case
for poison outside of SGX enclaves. This doesn't matter as addresses
of code/data inside an enclave is of little to no use to code executing
outside the (now dead) enclave.
Poison found in a free page results in the page being moved from the
free list to the per-node poison page list.
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lkml.kernel.org/r/20211026220050.697075-5-tony.luck@intel.com
Diffstat (limited to 'arch/x86/include/asm/processor.h')
0 files changed, 0 insertions, 0 deletions