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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 15 Dec 2021 23:32:06 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Jarkko Sakkinen <jarkko@...nel.org>
Cc:     Dave Hansen <dave.hansen@...ux.intel.com>,
        Reinette Chatre <reinette.chatre@...el.com>,
        LKML <linux-kernel@...r.kernel.org>, x86@...nel.org,
        lkp@...ts.01.org, lkp@...el.com
Subject: [selftests/sgx]  f0ff2447b8: kernel-selftests.sgx.make_fail



Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: f0ff2447b8613b883f41ae845b6cc7540d6e5f71 ("selftests/sgx: Add a new kselftest: Unclobbered_vdso_oversubscribed")
https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git x86/sgx

in testcase: kernel-selftests
version: kernel-selftests-x86_64-99d09ee9-1_20211206
with following parameters:

	group: sgx
	ucode: 0xde

test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt


on test machine: 16 threads 1 sockets Intel(R) Xeon(R) E-2278G CPU @ 3.40GHz with 32G memory

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):




If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>

KERNEL SELFTESTS: linux_headers_dir is /usr/src/linux-headers-x86_64-rhel-8.3-kselftests-f0ff2447b8613b883f41ae845b6cc7540d6e5f71
2021-12-11 16:33:38 ln -sf /usr/bin/clang
2021-12-11 16:33:38 ln -sf /usr/bin/llc
2021-12-11 16:33:39 sed -i s/default_timeout=45/default_timeout=300/ kselftest/runner.sh
2021-12-11 16:33:39 make -C sgx
make: Entering directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-f0ff2447b8613b883f41ae845b6cc7540d6e5f71/tools/testing/selftests/sgx'
gcc -Wall -Werror -g -I../../../../tools/include -fPIC -z noexecstack -c main.c -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-f0ff2447b8613b883f41ae845b6cc7540d6e5f71/tools/testing/selftests/sgx/main.o
main.c: In function ‘get_total_epc_mem’:
main.c:275:3: error: implicit declaration of function ‘__cpuid’ [-Werror=implicit-function-declaration]
   __cpuid(&eax, &ebx, &ecx, &edx);
   ^~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:33: /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-f0ff2447b8613b883f41ae845b6cc7540d6e5f71/tools/testing/selftests/sgx/main.o] Error 1
make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-f0ff2447b8613b883f41ae845b6cc7540d6e5f71/tools/testing/selftests/sgx'
2021-12-11 16:33:39 make run_tests -C sgx
make: Entering directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-f0ff2447b8613b883f41ae845b6cc7540d6e5f71/tools/testing/selftests/sgx'
gcc -Wall -Werror -g -I../../../../tools/include -fPIC -z noexecstack -c main.c -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-f0ff2447b8613b883f41ae845b6cc7540d6e5f71/tools/testing/selftests/sgx/main.o
main.c: In function ‘get_total_epc_mem’:
main.c:275:3: error: implicit declaration of function ‘__cpuid’ [-Werror=implicit-function-declaration]
   __cpuid(&eax, &ebx, &ecx, &edx);
   ^~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:33: /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-f0ff2447b8613b883f41ae845b6cc7540d6e5f71/tools/testing/selftests/sgx/main.o] Error 1
make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-f0ff2447b8613b883f41ae845b6cc7540d6e5f71/tools/testing/selftests/sgx'



To reproduce:

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        sudo bin/lkp install job.yaml           # job file is attached in this email
        bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
        sudo bin/lkp run generated-yaml-file

        # if come across any failure that blocks the test,
        # please remove ~/.lkp and /lkp dir to run from a clean state.



---
0DAY/LKP+ Test Infrastructure                   Open Source Technology Center
https://lists.01.org/hyperkitty/list/lkp@lists.01.org       Intel Corporation

Thanks,
Oliver Sang


View attachment "config-5.16.0-rc1-00015-gf0ff2447b861" of type "text/plain" (177531 bytes)

View attachment "job-script" of type "text/plain" (6109 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (23480 bytes)

View attachment "kernel-selftests" of type "text/plain" (2185 bytes)

View attachment "job.yaml" of type "text/plain" (5183 bytes)

View attachment "reproduce" of type "text/plain" (146 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ