[PATCH v3 0/7] Basic recovery for machine checks inside SGX

From: Tony Luck
Date: Wed Jul 28 2021 - 16:47:18 EST


Changes since v2:

Jarkko:
1) Don't provide a dummy non-NULL value for "owner" of new SGX EPC
pages at the call site. Instead change sgx_alloc_epc_page() to
provide a non-NULL value.
2) Add description of the new debugfs files to sgx.rst
[Added a whole section on uncorrected memory errors]

Tony Luck (7):
x86/sgx: Provide indication of life-cycle of EPC pages
x86/sgx: Add infrastructure to identify SGX EPC pages
x86/sgx: Initial poison handling for dirty and free pages
x86/sgx: Add SGX infrastructure to recover from poison
x86/sgx: Hook sgx_memory_failure() into mainline code
x86/sgx: Add hook to error injection address validation
x86/sgx: Add documentation for SGX memory errors

.../firmware-guide/acpi/apei/einj.rst | 19 +++
Documentation/x86/sgx.rst | 26 ++++
arch/x86/include/asm/set_memory.h | 4 +
arch/x86/kernel/cpu/sgx/main.c | 134 +++++++++++++++++-
arch/x86/kernel/cpu/sgx/sgx.h | 6 +-
drivers/acpi/apei/einj.c | 3 +-
include/linux/mm.h | 15 ++
mm/memory-failure.c | 19 ++-
8 files changed, 216 insertions(+), 10 deletions(-)


base-commit: ff1176468d368232b684f75e82563369208bc371
--
2.29.2