[PATCH V3 0/1] x86/sgx: Add code to inject hwpoison into SGX memory

From: Thomas Tai
Date: Mon Oct 17 2022 - 18:33:05 EST


This patch adds code to inject hwpoison into SGX memory. The SGX memory
is processor reserved memory that cannot be directly accessed by system
software.

Changes since v2:
- As suggested by Naoya Horiguchi <naoya.horiguchi@xxxxxxx>, add a
new mf_action_page_type MF_MSG_SGX and use action_result() to
show the page type and the action taken.
- Rewrite hwpoison.rst to show the output from dmesg after injection.
- Add reinette.chatre@xxxxxxxxx to the email list. Sorry that I
mistyped the email address in the previous emails.
- v2 Reviewed-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx>

Changes since v1:
- Add a comment in hwpoison_inject as suggested by Miaohe
- v1: Reviewed-by: Tony Luck <tony.luck@xxxxxxxxx>
- v1: Reviewed-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>


Thomas Tai (1):
x86/sgx: Add code to inject hwpoison into SGX memory

Documentation/mm/hwpoison.rst | 24 ++++++++++++++++++++++++
include/linux/mm.h | 1 +
include/ras/ras_event.h | 1 +
mm/hwpoison-inject.c | 4 ++++
mm/memory-failure.c | 5 ++++-
5 files changed, 34 insertions(+), 1 deletion(-)

--
2 .31.1