Subject: Re: [PATCH v9] selftests/vm: enable running select groups of tests

From: kernel test robot <[email-masked]>
Date: Wed, 2 Nov 2022 11:02:29 +0800

Greeting,

FYI, we noticed kernel-selftests.vm.run_vmtests.sh../hugepage_shm.fail due to commit (built with gcc-11):

commit: fd0dfc48f1ed0430088e3bb2c6e7d51379165afd ("[PATCH v9] selftests/vm: enable running select groups of tests")
url: https://github.com/intel-lab-lkp/linux/commits/Joel-Savitz/selftests-vm-enable-running-select-groups-of-tests/20221019-071314
base: https://git.kernel.org/cgit/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/lkml/[email-masked]
patch subject: [PATCH v9] selftests/vm: enable running select groups of tests

in testcase: kernel-selftests
version: kernel-selftests-x86_64-9313ba54-1_20221017
with following parameters:

	sc_nr_hugepages: 2
	group: vm

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: 88 threads 2 sockets Intel(R) Xeon(R) Gold 6238M CPU @ 2.10GHz (Cascade Lake) with 128G memory

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

2022-11-01 19:40:05 make quicktest=1 run_tests -C vm
...
# selftests: vm: run_vmtests.sh
...
# running: ./hugepage-shm
# ----------------------
# running ./hugepage-shm
# ----------------------
# shmget: Cannot allocate memory
# [FAIL]
# running: ./map_hugetlb
# ---------------------
# running ./map_hugetlb
# ---------------------
# mmap: Cannot allocate memory
# Default size hugepages
# Mapping 256 Mbytes
# [FAIL]
# running: ./hugepage-mremap
# -------------------------
# running ./hugepage-mremap
# -------------------------
# mmap1: Cannot allocate memory
# Map haddr: Returned address is 0xffffffffffffffff
# [FAIL]
...
# running: ./hugetlb-madvise
# -------------------------
# running ./hugetlb-madvise
# -------------------------
# Not enough free huge pages to test, exiting!
# [FAIL]

If you fix the issue, kindly add following tag
| Reported-by: kernel test robot <[email-masked]>
| Link: https://lore.kernel.org/oe-lkp/[email-masked]

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