linux/tools/testing/selftests/sgx
Reinette Chatre 2db703fc3b selftests/sgx: Ensure enclave data available during debug print
In support of debugging the SGX tests print details from
the enclave and its memory mappings if any failure is encountered
during enclave loading.

When a failure is encountered no data is printed because the
printing of the data is preceded by cleanup of the data.

Move the data cleanup after the data print.

Fixes: 1471721489 ("selftests/sgx: Dump segments and /proc/self/maps only on failure")
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lkml.kernel.org/r/dab672f771e9b99e50c17ae2a75dc0b020cb0ce9.1644355600.git.reinette.chatre@intel.com
2022-02-11 13:52:47 -08:00
..
.gitignore
call.S selftests/sgx: Rename 'eenter' and 'sgx_call_vdso' 2021-06-15 16:21:23 -06:00
defines.h selftests/sgx: Add test for multiple TCS entry 2021-11-15 11:34:16 -08:00
load.c selftests/sgx: Fix NULL-pointer-dereference upon early test failure 2022-02-11 13:52:47 -08:00
main.c selftests/sgx: Ensure enclave data available during debug print 2022-02-11 13:52:47 -08:00
main.h selftests/sgx: Create a heap for the test enclave 2021-11-15 11:34:03 -08:00
Makefile selftests/sgx: Fix a benign linker warning 2021-11-15 11:33:53 -08:00
sign_key.pem
sign_key.S
sigstruct.c selftests/sgx: Make data measurement for an enclave segment optional 2021-11-15 11:34:01 -08:00
test_encl_bootstrap.S selftests/sgx: Enable multiple thread support 2021-11-15 11:34:14 -08:00
test_encl.c selftests/sgx: Add test for multiple TCS entry 2021-11-15 11:34:16 -08:00
test_encl.lds selftests/sgx: Refine the test enclave to have storage 2021-06-15 16:27:23 -06:00