lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202503171507.6c8093d0-lkp@intel.com>
Date: Mon, 17 Mar 2025 16:13:03 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Thadeu Lima de Souza Cascardo <cascardo@...lia.com>
CC: <oe-lkp@...ts.linux.dev>, <lkp@...el.com>, <linux-kernel@...r.kernel.org>,
	Arnd Bergmann <arnd@...db.de>, Greg Kroah-Hartman
	<gregkh@...uxfoundation.org>, Andrew Morton <akpm@...ux-foundation.org>,
	"Dirk VanDerMerwe" <dirk.vandermerwe@...hos.com>, Vimal Agrawal
	<vimal.agrawal@...hos.com>, Thadeu Lima de Souza Cascardo
	<cascardo@...lia.com>, <oliver.sang@...el.com>
Subject: Re: [PATCH v2 1/2] char: misc: restrict the dynamic range to exclude
 reserved minors



Hello,

kernel test robot noticed "kernel-selftests.sgx.test_sgx.enclave.unclobbered_vdso.fail" on:

commit: 47b2b7ca1ce4d1dbbaae0334436869c9e987d03c ("[PATCH v2 1/2] char: misc: restrict the dynamic range to exclude reserved minors")
url: https://github.com/intel-lab-lkp/linux/commits/Thadeu-Lima-de-Souza-Cascardo/char-misc-restrict-the-dynamic-range-to-exclude-reserved-minors/20250307-231711
patch link: https://lore.kernel.org/all/20250307-misc-dynrange-v2-1-6fe19032ef76@igalia.com/
patch subject: [PATCH v2 1/2] char: misc: restrict the dynamic range to exclude reserved minors

in testcase: kernel-selftests
version: kernel-selftests-x86_64-7ff71e6d9239-1_20250215
with following parameters:

	group: sgx



config: x86_64-rhel-9.4-kselftests
compiler: gcc-12
test machine: 16 threads 1 sockets Intel(R) Xeon(R) E-2278G CPU @ 3.40GHz (Coffee Lake-E) with 32G memory

(please refer to attached dmesg/kmsg for entire log/backtrace)


here is a comparison with more details, cases failed upon this commit while
pass on parent:

=========================================================================================
tbox_group/testcase/rootfs/kconfig/compiler/group:
  lkp-cfl-e1/kernel-selftests/debian-12-x86_64-20240206.cgz/x86_64-rhel-9.4-kselftests/gcc-12/sgx

2397d61ee45cddb8 47b2b7ca1ce4d1dbbaae0334436
---------------- ---------------------------
       fail:runs  %reproduction    fail:runs
           |             |             |
           :9           67%           6:6     kernel-selftests.sgx.test_sgx.enclave.clobbered_vdso.fail
           :9           67%           6:6     kernel-selftests.sgx.test_sgx.enclave.clobbered_vdso_and_user_function.fail
           :9           67%           6:6     kernel-selftests.sgx.test_sgx.enclave.pte_permissions.fail
           :9           67%           6:6     kernel-selftests.sgx.test_sgx.enclave.tcs_entry.fail
           :9           67%           6:6     kernel-selftests.sgx.test_sgx.enclave.unclobbered_vdso.fail
           :9           67%           6:6     kernel-selftests.sgx.test_sgx.enclave.unclobbered_vdso_oversubscribed.fail
           :9           67%           6:6     kernel-selftests.sgx.test_sgx.fail




If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <oliver.sang@...el.com>
| Closes: https://lore.kernel.org/oe-lkp/202503171507.6c8093d0-lkp@intel.com


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'



The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20250317/202503171507.6c8093d0-lkp@intel.com



-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ