diff options
author | Reinette Chatre <[email protected]> | 2022-02-08 13:48:40 -0800 |
---|---|---|
committer | Dave Hansen <[email protected]> | 2022-02-11 13:52:47 -0800 |
commit | fff36bcbfde1126f6b81cb8ee12a58aada17ca29 (patch) | |
tree | a4ef7d5b59bed483e5558d2712e4fc81e5a49c20 /lib/test_fortify/write_overflow-memcpy.c | |
parent | 2d03861e0d1d1ee81efc59338101cdd86a7474f6 (diff) |
selftests/sgx: Do not attempt enclave build without valid enclave
It is not possible to build an enclave if it was not possible to load
the binary from which it should be constructed. Do not attempt
to make further progress but instead return with failure. A
"return false" from setup_test_encl() is expected to trip an
ASSERT_TRUE() and abort the rest of the test.
Fixes: 1b35eb719549 ("selftests/sgx: Encpsulate the test enclave creation")
Signed-off-by: Reinette Chatre <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Acked-by: Dave Hansen <[email protected]>
Acked-by: Shuah Khan <[email protected]>
Link: https://lkml.kernel.org/r/e3778c77f95e6dca348c732b12f155051d2899b4.1644355600.git.reinette.chatre@intel.com
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions