[GIT PULL] x86/sgx for 6.8

From: Dave Hansen
Date: Wed Jan 10 2024 - 15:52:29 EST


Hi Linus,

Please pull some x86/sgx changes for 6.8. This time, these are
entirely confined to SGX selftests fixes.

The mini SGX enclave built by the selftests has garnered some
attention because it stands alone and does not need the sizable
infrastructure of the official SGX SDK. I think that's why folks
are suddently interested in cleaning it up.

--

The following changes since commit 33cc938e65a98f1d29d0a18403dbbee050dcad9a:

Linux 6.7-rc4 (2023-12-03 18:52:56 +0900)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_sgx_for_6.8

for you to fetch changes up to 981cf568a8644161c2f15c02278ebc2834b51ba6:

selftests/sgx: Skip non X86_64 platform (2023-12-08 10:08:17 -0800)

----------------------------------------------------------------
- Clean up selftest compilation issues, mostly from non-gcc compilers
- Avoid building selftests when not on x86

----------------------------------------------------------------
Jo Van Bulck (13):
selftests/sgx: Fix uninitialized pointer dereference in error path
selftests/sgx: Fix uninitialized pointer dereferences in encl_get_entry
selftests/sgx: Include memory clobber for inline asm in test enclave
selftests/sgx: Separate linker options
selftests/sgx: Specify freestanding environment for enclave compilation
selftests/sgx: Remove redundant enclave base address save/restore
selftests/sgx: Produce static-pie executable for test enclave
selftests/sgx: Handle relocations in test enclave
selftests/sgx: Fix linker script asserts
selftests/sgx: Ensure test enclave buffer is entirely preserved
selftests/sgx: Ensure expected location of test enclave buffer
selftests/sgx: Discard unsupported ELF sections
selftests/sgx: Remove incomplete ABI sanitization code in test enclave

Zhao Mengmeng (1):
selftests/sgx: Skip non X86_64 platform

tools/testing/selftests/sgx/Makefile | 14 +++--
tools/testing/selftests/sgx/defines.h | 2 +
tools/testing/selftests/sgx/load.c | 9 ++-
tools/testing/selftests/sgx/sigstruct.c | 5 +-
tools/testing/selftests/sgx/test_encl.c | 67 +++++++++++++++--------
tools/testing/selftests/sgx/test_encl.lds | 10 ++--
tools/testing/selftests/sgx/test_encl_bootstrap.S | 28 +++-------
7 files changed, 78 insertions(+), 57 deletions(-)