2022-02-28 11:18:59

by kernel test robot

[permalink] [raw]
Subject: [selftests/vm] d9f32e931b: kernel-selftests.vm.make_fail



Greeting,

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

commit: d9f32e931b3c692d399c224ff3126573c313a0c7 ("selftests/vm: start adding tests for COW handling of anonymous memory")
git://github.com/davidhildenbrand/linux cow_fixes_part_2a

in testcase: kernel-selftests
version: kernel-selftests-x86_64-4f015972-1_20220217
with following parameters:

group: vm
ucode: 0x9c02000e

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: 24 threads 1 sockets Intel Atom(R) P5362 processor with 64G 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 <[email protected]>

KERNEL SELFTESTS: linux_headers_dir is /usr/src/linux-headers-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7
2022-02-28 01:19:48 ln -sf /usr/bin/clang
2022-02-28 01:19:48 ln -sf /usr/bin/llc
2022-02-28 01:19:48 sed -i s/default_timeout=45/default_timeout=300/ kselftest/runner.sh
2022-02-28 01:19:48 make -C vm
make: Entering directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm'
/bin/sh ./check_config.sh gcc
make --no-builtin-rules ARCH=x86 -C ../../../.. headers_install
make[1]: Entering directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7'
HOSTCC scripts/basic/fixdep
HOSTCC scripts/unifdef
WRAP arch/x86/include/generated/uapi/asm/bpf_perf_event.h
WRAP arch/x86/include/generated/uapi/asm/errno.h
WRAP arch/x86/include/generated/uapi/asm/fcntl.h
WRAP arch/x86/include/generated/uapi/asm/ioctl.h
WRAP arch/x86/include/generated/uapi/asm/ioctls.h
WRAP arch/x86/include/generated/uapi/asm/ipcbuf.h
WRAP arch/x86/include/generated/uapi/asm/param.h
WRAP arch/x86/include/generated/uapi/asm/poll.h
WRAP arch/x86/include/generated/uapi/asm/resource.h
WRAP arch/x86/include/generated/uapi/asm/socket.h
WRAP arch/x86/include/generated/uapi/asm/sockios.h
WRAP arch/x86/include/generated/uapi/asm/termbits.h
WRAP arch/x86/include/generated/uapi/asm/termios.h
WRAP arch/x86/include/generated/uapi/asm/types.h
SYSHDR arch/x86/include/generated/uapi/asm/unistd_32.h
SYSHDR arch/x86/include/generated/uapi/asm/unistd_64.h
SYSHDR arch/x86/include/generated/uapi/asm/unistd_x32.h
SYSTBL arch/x86/include/generated/asm/syscalls_32.h
HOSTCC arch/x86/tools/relocs_32.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
HOSTLD arch/x86/tools/relocs
UPD include/generated/uapi/linux/version.h
HDRINST usr/include/video/sisfb.h
HDRINST usr/include/video/uvesafb.h

...

HDRINST usr/include/asm/errno.h
HDRINST usr/include/asm/bpf_perf_event.h
INSTALL ./usr/include
make[1]: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7'
gcc -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr -Wall -DMADV_PAGEOUT=21 -no-pie anon_cow.c -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm/anon_cow
gcc -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr -Wall -DMADV_PAGEOUT=21 -no-pie compaction_test.c -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm/compaction_test
gcc -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr -Wall -DMADV_PAGEOUT=21 -no-pie gup_test.c ../../../../mm/gup_test.h -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm/gup_test
gcc -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr -Wall -DMADV_PAGEOUT=21 -no-pie hmm-tests.c local_config.h -lrt -lpthread -lhugetlbfs -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm/hmm-tests
gcc -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr -Wall -DMADV_PAGEOUT=21 -no-pie hugepage-mmap.c -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm/hugepage-mmap
gcc -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr -Wall -DMADV_PAGEOUT=21 -no-pie hugepage-mremap.c -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm/hugepage-mremap
gcc -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr -Wall -DMADV_PAGEOUT=21 -no-pie hugepage-shm.c -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm/hugepage-shm
gcc -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr -Wall -DMADV_PAGEOUT=21 -no-pie khugepaged.c -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm/khugepaged
gcc -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr -Wall -DMADV_PAGEOUT=21 -no-pie madv_populate.c -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm/madv_populate
madv_populate.c: In function ‘sense_support’:
madv_populate.c:66:32: error: ‘MADV_POPULATE_READ’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, pagesize, MADV_POPULATE_READ);
^~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c:66:32: note: each undeclared identifier is reported only once for each function it appears in
madv_populate.c:70:32: error: ‘MADV_POPULATE_WRITE’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, pagesize, MADV_POPULATE_WRITE);
^~~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c: In function ‘test_prot_read’:
madv_populate.c:88:28: error: ‘MADV_POPULATE_READ’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_READ);
^~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c:91:28: error: ‘MADV_POPULATE_WRITE’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_WRITE);
^~~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c: In function ‘test_prot_write’:
madv_populate.c:109:28: error: ‘MADV_POPULATE_READ’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_READ);
^~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c:113:28: error: ‘MADV_POPULATE_WRITE’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_WRITE);
^~~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c: In function ‘test_holes’:
madv_populate.c:135:28: error: ‘MADV_POPULATE_READ’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_READ);
^~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c:138:28: error: ‘MADV_POPULATE_WRITE’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_WRITE);
^~~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c: In function ‘test_populate_read’:
madv_populate.c:203:28: error: ‘MADV_POPULATE_READ’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_READ);
^~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c: In function ‘test_populate_write’:
madv_populate.c:225:28: error: ‘MADV_POPULATE_WRITE’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_WRITE);
^~~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c: In function ‘test_softdirty’:
madv_populate.c:293:28: error: ‘MADV_POPULATE_READ’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_READ);
^~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c:299:28: error: ‘MADV_POPULATE_WRITE’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_WRITE);
^~~~~~~~~~~~~~~~~~~
MAP_POPULATE
make: *** [../lib.mk:146: /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm/madv_populate] Error 1
make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm'
2022-02-28 01:21:12 make run_tests -C vm
make: Entering directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm'
make --no-builtin-rules ARCH=x86 -C ../../../.. headers_install
make[1]: Entering directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7'
INSTALL ./usr/include
make[1]: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7'
gcc -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr -Wall -DMADV_PAGEOUT=21 -no-pie madv_populate.c -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm/madv_populate
madv_populate.c: In function ‘sense_support’:
madv_populate.c:66:32: error: ‘MADV_POPULATE_READ’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, pagesize, MADV_POPULATE_READ);
^~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c:66:32: note: each undeclared identifier is reported only once for each function it appears in
madv_populate.c:70:32: error: ‘MADV_POPULATE_WRITE’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, pagesize, MADV_POPULATE_WRITE);
^~~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c: In function ‘test_prot_read’:
madv_populate.c:88:28: error: ‘MADV_POPULATE_READ’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_READ);
^~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c:91:28: error: ‘MADV_POPULATE_WRITE’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_WRITE);
^~~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c: In function ‘test_prot_write’:
madv_populate.c:109:28: error: ‘MADV_POPULATE_READ’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_READ);
^~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c:113:28: error: ‘MADV_POPULATE_WRITE’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_WRITE);
^~~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c: In function ‘test_holes’:
madv_populate.c:135:28: error: ‘MADV_POPULATE_READ’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_READ);
^~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c:138:28: error: ‘MADV_POPULATE_WRITE’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_WRITE);
^~~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c: In function ‘test_populate_read’:
madv_populate.c:203:28: error: ‘MADV_POPULATE_READ’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_READ);
^~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c: In function ‘test_populate_write’:
madv_populate.c:225:28: error: ‘MADV_POPULATE_WRITE’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_WRITE);
^~~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c: In function ‘test_softdirty’:
madv_populate.c:293:28: error: ‘MADV_POPULATE_READ’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_READ);
^~~~~~~~~~~~~~~~~~
MAP_POPULATE
madv_populate.c:299:28: error: ‘MADV_POPULATE_WRITE’ undeclared (first use in this function); did you mean ‘MAP_POPULATE’?
ret = madvise(addr, SIZE, MADV_POPULATE_WRITE);
^~~~~~~~~~~~~~~~~~~
MAP_POPULATE
make: *** [../lib.mk:146: /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm/madv_populate] Error 1
make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-d9f32e931b3c692d399c224ff3126573c313a0c7/tools/testing/selftests/vm'



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/[email protected] Intel Corporation

Thanks,
Oliver Sang


Attachments:
(No filename) (15.17 kB)
config-5.17.0-rc4-00018-gd9f32e931b3c (181.28 kB)
job-script (5.78 kB)
dmesg.xz (14.94 kB)
kernel-selftests (53.03 kB)
job.yaml (4.90 kB)
reproduce (148.00 B)
Download all attachments