KERNEL SELFTESTS: linux_headers_dir is /usr/src/linux-headers-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c 2025-03-11 18:27:44 sed -i s/default_timeout=45/default_timeout=300/ kselftest/runner.sh 2025-03-11 18:27:44 make -j16 -C sgx make: Entering directory '/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx' gcc -Wall -Werror -g -I/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/../../../tools/include -fPIC -D_GNU_SOURCE= -c main.c -o /usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx/main.o gcc -Wall -Werror -g -I/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/../../../tools/include -fPIC -D_GNU_SOURCE= -c load.c -o /usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx/load.o gcc -Wall -Werror -g -I/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/../../../tools/include -fPIC -D_GNU_SOURCE= -c sigstruct.c -o /usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx/sigstruct.o gcc -Wall -Werror -g -I/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/../../../tools/include -fPIC -D_GNU_SOURCE= -c call.S -o /usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx/call.o gcc -Wall -Werror -g -I/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/../../../tools/include -fPIC -D_GNU_SOURCE= -c sign_key.S -o /usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx/sign_key.o gcc -Wall -Werror -static-pie -nostdlib -ffreestanding -fPIE -fno-stack-protector -mrdrnd -I/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/../../../tools/include test_encl.c test_encl_bootstrap.S -o /usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx/test_encl.elf -Wl,-T,test_encl.lds,--build-id=none /usr/bin/ld: warning: /tmp/lkp/cc7RllFc.o: missing .note.GNU-stack section implies executable stack /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker gcc -Wall -Werror -g -I/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/../../../tools/include -fPIC -D_GNU_SOURCE= -o /usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx/test_sgx /usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx/main.o /usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx/load.o /usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx/sigstruct.o /usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx/call.o /usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx/sign_key.o -z noexecstack -lcrypto make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx' 2025-03-11 18:27:45 make quicktest=1 run_tests -C sgx make: Entering directory '/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx' TAP version 13 1..1 # timeout set to 300 # selftests: sgx: test_sgx # TAP version 13 # 1..16 # # Starting 16 tests from 1 test cases. # # RUN enclave.unclobbered_vdso ... # Unable to open /dev/sgx_enclave: No such device or address # # main.c:188:unclobbered_vdso:Failed to load the test enclave. # # main.c:287:unclobbered_vdso:Expected 0 (0) != setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata) (0) # # unclobbered_vdso: Test terminated by assertion # # FAIL enclave.unclobbered_vdso # not ok 1 enclave.unclobbered_vdso # # RUN enclave.unclobbered_vdso_oversubscribed ... # Unable to open /dev/sgx_enclave: No such device or address # # main.c:188:unclobbered_vdso_oversubscribed:Failed to load the test enclave. # # main.c:360:unclobbered_vdso_oversubscribed:Expected 0 (0) != setup_test_encl(total_mem, &self->encl, _metadata) (0) # # unclobbered_vdso_oversubscribed: Test terminated by assertion # # FAIL enclave.unclobbered_vdso_oversubscribed # not ok 2 enclave.unclobbered_vdso_oversubscribed # # RUN enclave.unclobbered_vdso_oversubscribed_remove ... # # main.c:402:unclobbered_vdso_oversubscribed_remove:Creating an enclave with 198705152 bytes heap may take a while ... # Unable to open /dev/sgx_enclave: No such device or address # # main.c:188:unclobbered_vdso_oversubscribed_remove:Failed to load the test enclave. # # main.c:404:unclobbered_vdso_oversubscribed_remove:Expected 0 (0) != setup_test_encl(total_mem, &self->encl, _metadata) (0) # # unclobbered_vdso_oversubscribed_remove: Test terminated by assertion # # FAIL enclave.unclobbered_vdso_oversubscribed_remove # not ok 3 enclave.unclobbered_vdso_oversubscribed_remove # # RUN enclave.clobbered_vdso ... # Unable to open /dev/sgx_enclave: No such device or address # # main.c:188:clobbered_vdso:Failed to load the test enclave. # # main.c:509:clobbered_vdso:Expected 0 (0) != setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata) (0) # # clobbered_vdso: Test terminated by assertion # # FAIL enclave.clobbered_vdso # not ok 4 enclave.clobbered_vdso # # RUN enclave.clobbered_vdso_and_user_function ... # Unable to open /dev/sgx_enclave: No such device or address # # main.c:188:clobbered_vdso_and_user_function:Failed to load the test enclave. # # main.c:545:clobbered_vdso_and_user_function:Expected 0 (0) != setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata) (0) # # clobbered_vdso_and_user_function: Test terminated by assertion # # FAIL enclave.clobbered_vdso_and_user_function # not ok 5 enclave.clobbered_vdso_and_user_function # # RUN enclave.tcs_entry ... # Unable to open /dev/sgx_enclave: No such device or address # # main.c:188:tcs_entry:Failed to load the test enclave. # # main.c:578:tcs_entry:Expected 0 (0) != setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata) (0) # # tcs_entry: Test terminated by assertion # # FAIL enclave.tcs_entry # not ok 6 enclave.tcs_entry # # RUN enclave.pte_permissions ... # Unable to open /dev/sgx_enclave: No such device or address # # main.c:188:pte_permissions:Failed to load the test enclave. # # main.c:623:pte_permissions:Expected 0 (0) != setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata) (0) # # pte_permissions: Test terminated by assertion # # FAIL enclave.pte_permissions # not ok 7 enclave.pte_permissions # # RUN enclave.tcs_permissions ... # Unable to open /dev/sgx_enclave: No such device or address # # main.c:188:tcs_permissions:Failed to load the test enclave. # # main.c:725:tcs_permissions:Expected 0 (0) != setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata) (0) # # tcs_permissions: Test terminated by assertion # # FAIL enclave.tcs_permissions # not ok 8 enclave.tcs_permissions # # RUN enclave.epcm_permissions ... # Unable to open /dev/sgx_enclave: No such device or address # # main.c:188:epcm_permissions:Failed to load the test enclave. # # main.c:788:epcm_permissions:Expected 0 (0) != setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata) (0) # # epcm_permissions: Test terminated by assertion # # FAIL enclave.epcm_permissions # not ok 9 enclave.epcm_permissions # # RUN enclave.augment ... # # SKIP SGX2 not supported # # OK enclave.augment # ok 10 enclave.augment # SKIP SGX2 not supported # # RUN enclave.augment_via_eaccept ... # # SKIP SGX2 not supported # # OK enclave.augment_via_eaccept # ok 11 enclave.augment_via_eaccept # SKIP SGX2 not supported # # RUN enclave.tcs_create ... # Unable to open /dev/sgx_enclave: No such device or address # # main.c:188:tcs_create:Failed to load the test enclave. # # main.c:1240:tcs_create:Expected 0 (0) != setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata) (0) # # tcs_create: Test terminated by assertion # # FAIL enclave.tcs_create # not ok 12 enclave.tcs_create # # RUN enclave.remove_added_page_no_eaccept ... # Unable to open /dev/sgx_enclave: No such device or address # # main.c:188:remove_added_page_no_eaccept:Failed to load the test enclave. # # main.c:1571:remove_added_page_no_eaccept:Expected 0 (0) != setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata) (0) # # remove_added_page_no_eaccept: Test terminated by assertion # # FAIL enclave.remove_added_page_no_eaccept # not ok 13 enclave.remove_added_page_no_eaccept # # RUN enclave.remove_added_page_invalid_access ... # Unable to open /dev/sgx_enclave: No such device or address # # main.c:188:remove_added_page_invalid_access:Failed to load the test enclave. # # main.c:1682:remove_added_page_invalid_access:Expected 0 (0) != setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata) (0) # # remove_added_page_invalid_access: Test terminated by assertion # # FAIL enclave.remove_added_page_invalid_access # not ok 14 enclave.remove_added_page_invalid_access # # RUN enclave.remove_added_page_invalid_access_after_eaccept ... # Unable to open /dev/sgx_enclave: No such device or address # # main.c:188:remove_added_page_invalid_access_after_eaccept:Failed to load the test enclave. # # main.c:1797:remove_added_page_invalid_access_after_eaccept:Expected 0 (0) != setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata) (0) # # remove_added_page_invalid_access_after_eaccept: Test terminated by assertion # # FAIL enclave.remove_added_page_invalid_access_after_eaccept # not ok 15 enclave.remove_added_page_invalid_access_after_eaccept # # RUN enclave.remove_untouched_page ... # Unable to open /dev/sgx_enclave: No such device or address # # main.c:188:remove_untouched_page:Failed to load the test enclave. # # main.c:1921:remove_untouched_page:Expected 0 (0) != setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata) (0) # # remove_untouched_page: Test terminated by assertion # # FAIL enclave.remove_untouched_page # not ok 16 enclave.remove_untouched_page # # FAILED: 2 / 16 tests passed. # # 2 skipped test(s) detected. Consider enabling relevant config options to improve coverage. # # Totals: pass:0 fail:14 xfail:0 xpass:0 skip:2 error:0 not ok 1 selftests: sgx: test_sgx # exit=1 make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-47b2b7ca1ce4d1dbbaae0334436869c9e987d03c/tools/testing/selftests/sgx'