diff options
author | Reinette Chatre <[email protected]> | 2022-02-08 13:48:41 -0800 |
---|---|---|
committer | Dave Hansen <[email protected]> | 2022-02-11 13:52:47 -0800 |
commit | 2db703fc3b15e7ef68c82eca613a3c00d43d70af (patch) | |
tree | 5d51766241e4ff9326e2375a0d832de6fcd4fbdc /lib/test_fortify/write_overflow-memcpy.c | |
parent | fff36bcbfde1126f6b81cb8ee12a58aada17ca29 (diff) |
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: 147172148909 ("selftests/sgx: Dump segments and /proc/self/maps only on failure")
Signed-off-by: Reinette Chatre <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Acked-by: Shuah Khan <[email protected]>
Link: https://lkml.kernel.org/r/dab672f771e9b99e50c17ae2a75dc0b020cb0ce9.1644355600.git.reinette.chatre@intel.com
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions