Greeting, FYI, we noticed the following commit (built with gcc-9): commit: 4e2c82a40911c19419349918e675aa202b113b4d ("[PATCH v5 3/3] mm: adjust vm_committed_as_batch according to vm overcommit policy") url: https://github.com/0day-ci/linux/commits/Feng-Tang/make-vm_committed_as_batch-aware-of-vm-overcommit-policy/20200621-153906 in testcase: ltp with following parameters: disk: 1HDD test: mm-01 test-description: The LTP testsuite contains a collection of tools for testing the Linux kernel and related features. test-url: http://linux-test-project.github.io/ on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G 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 <<>> tag=overcommit_memory01 stime=1593425044 cmdline="overcommit_memory" contacts="" analysis=exit <<>> tst_test.c:1247: INFO: Timeout per run is 0h 05m 00s overcommit_memory.c:116: INFO: MemTotal is 16394252 kB overcommit_memory.c:118: INFO: SwapTotal is 268435452 kB overcommit_memory.c:122: INFO: CommitLimit is 276632576 kB mem.c:817: INFO: set overcommit_ratio to 50 mem.c:817: INFO: set overcommit_memory to 2 overcommit_memory.c:187: INFO: malloc 551061440 kB failed overcommit_memory.c:208: PASS: alloc failed as expected overcommit_memory.c:183: INFO: malloc 276632576 kB successfully overcommit_memory.c:210: FAIL: alloc passed, expected to fail overcommit_memory.c:183: INFO: malloc 137765294 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected mem.c:817: INFO: set overcommit_memory to 0 overcommit_memory.c:183: INFO: malloc 140770308 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected overcommit_memory.c:187: INFO: malloc 569659408 kB failed overcommit_memory.c:208: PASS: alloc failed as expected mem.c:817: INFO: set overcommit_memory to 1 overcommit_memory.c:183: INFO: malloc 142414852 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected overcommit_memory.c:183: INFO: malloc 284829704 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected overcommit_memory.c:183: INFO: malloc 569659408 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected mem.c:817: INFO: set overcommit_memory to 0 mem.c:817: INFO: set overcommit_ratio to 50 Summary: passed 7 failed 1 skipped 0 warnings 0 <<>> initiation_status="ok" duration=0 termination_type=exited termination_id=1 corefile=no cutime=0 cstime=1 <<>> <<>> tag=overcommit_memory02 stime=1593425044 cmdline="overcommit_memory -R 0" contacts="" analysis=exit <<>> tst_test.c:1247: INFO: Timeout per run is 0h 05m 00s overcommit_memory.c:116: INFO: MemTotal is 16394252 kB overcommit_memory.c:118: INFO: SwapTotal is 268435452 kB overcommit_memory.c:122: INFO: CommitLimit is 276632576 kB mem.c:817: INFO: set overcommit_ratio to 0 mem.c:817: INFO: set overcommit_memory to 2 overcommit_memory.c:187: INFO: malloc 534667184 kB failed overcommit_memory.c:208: PASS: alloc failed as expected overcommit_memory.c:183: INFO: malloc 268435452 kB successfully overcommit_memory.c:210: FAIL: alloc passed, expected to fail overcommit_memory.c:183: INFO: malloc 133666730 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected mem.c:817: INFO: set overcommit_memory to 0 overcommit_memory.c:183: INFO: malloc 140770304 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected overcommit_memory.c:187: INFO: malloc 569659408 kB failed overcommit_memory.c:208: PASS: alloc failed as expected mem.c:817: INFO: set overcommit_memory to 1 overcommit_memory.c:183: INFO: malloc 142414852 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected overcommit_memory.c:183: INFO: malloc 284829704 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected overcommit_memory.c:183: INFO: malloc 569659408 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected mem.c:817: INFO: set overcommit_memory to 0 mem.c:817: INFO: set overcommit_ratio to 50 Summary: passed 7 failed 1 skipped 0 warnings 0 <<>> initiation_status="ok" duration=0 termination_type=exited termination_id=1 corefile=no cutime=0 cstime=0 <<>> <<>> tag=overcommit_memory03 stime=1593425044 cmdline="overcommit_memory -R 30" contacts="" analysis=exit <<>> tst_test.c:1247: INFO: Timeout per run is 0h 05m 00s overcommit_memory.c:116: INFO: MemTotal is 16394252 kB overcommit_memory.c:118: INFO: SwapTotal is 268435452 kB overcommit_memory.c:122: INFO: CommitLimit is 276632576 kB mem.c:817: INFO: set overcommit_ratio to 30 mem.c:817: INFO: set overcommit_memory to 2 overcommit_memory.c:187: INFO: malloc 544503712 kB failed overcommit_memory.c:208: PASS: alloc failed as expected overcommit_memory.c:183: INFO: malloc 273353724 kB successfully overcommit_memory.c:210: FAIL: alloc passed, expected to fail overcommit_memory.c:183: INFO: malloc 136125862 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected mem.c:817: INFO: set overcommit_memory to 0 overcommit_memory.c:183: INFO: malloc 140770438 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected overcommit_memory.c:187: INFO: malloc 569659408 kB failed overcommit_memory.c:208: PASS: alloc failed as expected mem.c:817: INFO: set overcommit_memory to 1 overcommit_memory.c:183: INFO: malloc 142414852 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected overcommit_memory.c:183: INFO: malloc 284829704 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected overcommit_memory.c:183: INFO: malloc 569659408 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected mem.c:817: INFO: set overcommit_memory to 0 mem.c:817: INFO: set overcommit_ratio to 50 Summary: passed 7 failed 1 skipped 0 warnings 0 <<>> initiation_status="ok" duration=0 termination_type=exited termination_id=1 corefile=no cutime=0 cstime=1 <<>> <<>> tag=overcommit_memory04 stime=1593425044 cmdline="overcommit_memory -R 80" contacts="" analysis=exit <<>> tst_test.c:1247: INFO: Timeout per run is 0h 05m 00s overcommit_memory.c:116: INFO: MemTotal is 16394252 kB overcommit_memory.c:118: INFO: SwapTotal is 268435452 kB overcommit_memory.c:122: INFO: CommitLimit is 276632576 kB mem.c:817: INFO: set overcommit_ratio to 80 mem.c:817: INFO: set overcommit_memory to 2 overcommit_memory.c:187: INFO: malloc 560897960 kB failed overcommit_memory.c:208: PASS: alloc failed as expected overcommit_memory.c:183: INFO: malloc 281550852 kB successfully overcommit_memory.c:210: FAIL: alloc passed, expected to fail overcommit_memory.c:183: INFO: malloc 140224422 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected mem.c:817: INFO: set overcommit_memory to 0 overcommit_memory.c:183: INFO: malloc 140770438 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected overcommit_memory.c:187: INFO: malloc 569659408 kB failed overcommit_memory.c:208: PASS: alloc failed as expected mem.c:817: INFO: set overcommit_memory to 1 overcommit_memory.c:183: INFO: malloc 142414852 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected overcommit_memory.c:183: INFO: malloc 284829704 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected overcommit_memory.c:183: INFO: malloc 569659408 kB successfully overcommit_memory.c:202: PASS: alloc passed as expected mem.c:817: INFO: set overcommit_memory to 0 mem.c:817: INFO: set overcommit_ratio to 50 Summary: passed 7 failed 1 skipped 0 warnings 0 <<>> initiation_status="ok" duration=0 termination_type=exited termination_id=1 corefile=no cutime=0 cstime=0 <<>> To reproduce: # build kernel cd linux cp config-5.8.0-rc1-00304-g4e2c82a40911c .config make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 INSTALL_MOD_PATH= modules_install cd find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k -m modules.cgz job-script # job-script is attached in this email Thanks, Rong Chen