Greeting,
FYI, we noticed the following commit (built with gcc-11):
commit: e8b9989597daac896b3400b7005f24bf15233d9a ("selftest/vm: verify mmap addr in mremap_test")
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable-rc.git linux-5.15.y
in testcase: kernel-selftests
version: kernel-selftests-x86_64-a6eb654d-1_20220501
with following parameters:
sc_nr_hugepages: 2
group: vm
ucode: 0x28
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: 8 threads 1 sockets Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz with 8G 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]>
gcc -Wall -I ../../../../usr/include -DMADV_PAGEOUT=21 -no-pie mremap_test.c -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-e8b9989597daac896b3400b7005f24bf15233d9a/tools/testing/selftests/vm/mremap_test
mremap_test.c:123:27: error: redefinition of ‘get_mmap_min_addr’
static unsigned long long get_mmap_min_addr(void)
^~~~~~~~~~~~~~~~~
mremap_test.c:70:27: note: previous definition of ‘get_mmap_min_addr’ was here
static unsigned long long get_mmap_min_addr(void)
^~~~~~~~~~~~~~~~~
mremap_test.c:70:27: warning: ‘get_mmap_min_addr’ defined but not used [-Wunused-function]
make: *** [../lib.mk:146: /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-e8b9989597daac896b3400b7005f24bf15233d9a/tools/testing/selftests/vm/mremap_test] Error 1
make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-e8b9989597daac896b3400b7005f24bf15233d9a/tools/testing/selftests/vm'
2022-05-14 12:40:16 make run_tests -C vm
make: Entering directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-e8b9989597daac896b3400b7005f24bf15233d9a/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-e8b9989597daac896b3400b7005f24bf15233d9a'
INSTALL ./usr/include
make[1]: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-e8b9989597daac896b3400b7005f24bf15233d9a'
gcc -Wall -I ../../../../usr/include -DMADV_PAGEOUT=21 -no-pie mremap_test.c -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-e8b9989597daac896b3400b7005f24bf15233d9a/tools/testing/selftests/vm/mremap_test
mremap_test.c:123:27: error: redefinition of ‘get_mmap_min_addr’
static unsigned long long get_mmap_min_addr(void)
^~~~~~~~~~~~~~~~~
mremap_test.c:70:27: note: previous definition of ‘get_mmap_min_addr’ was here
static unsigned long long get_mmap_min_addr(void)
^~~~~~~~~~~~~~~~~
mremap_test.c:70:27: warning: ‘get_mmap_min_addr’ defined but not used [-Wunused-function]
make: *** [../lib.mk:146: /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-e8b9989597daac896b3400b7005f24bf15233d9a/tools/testing/selftests/vm/mremap_test] Error 1
make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-e8b9989597daac896b3400b7005f24bf15233d9a/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.
--
0-DAY CI Kernel Test Service
https://01.org/lkp