selftests: mincore: mincore_selftest fails only on qemu-armv7

From: Naresh Kamboju
Date: Mon May 15 2023 - 05:59:26 EST


The selftests: mincore: mincore_selftest fails only on qemu-armv7 running
Linux next, mainline and stable branches.

Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>

# selftests: mincore: mincore_selftest
# TAP version 13
# 1..5
# # Starting 5 tests from 1 test cases.
# # RUN global.basic_interface ...
# # OK global.basic_interface
# ok 1 global.basic_interface
# # RUN global.check_anonymous_locked_pages ...
# # OK global.check_anonymous_locked_pages
# ok 2 global.check_anonymous_locked_pages
# # RUN global.check_huge_pages ...
# # mincore_selftest.c:156:check_huge_pages:mmap error: Invalid argument
# # mincore_selftest.c:159:check_huge_pages:Expected 0 (0) == retval (-1)
# # check_huge_pages: Test terminated by assertion
# # FAIL global.check_huge_pages
# not ok 3 global.check_huge_pages
# # RUN global.check_file_mmap ...
# # OK global.check_file_mmap
# ok 4 global.check_file_mmap
# # RUN global.check_tmpfs_mmap ...
# # OK global.check_tmpfs_mmap
# ok 5 global.check_tmpfs_mmap
# # FAILED: 4 / 5 tests passed.
# # Totals: pass:4 fail:1 xfail:0 xpass:0 skip:0 error:0

logs:
https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/tests/2PnaQ12zfS0p4KS5pP37ZIHJR0U

History:
https://qa-reports.linaro.org/lkft/linux-mainline-master/build/v6.4-rc2/testrun/16947285/suite/kselftest-mincore/test/mincore_mincore_selftest/history/


Steps to reproduce:
----------------
# To install tuxrun on your system globally:
# sudo pip3 install -U tuxrun==0.42.0
#
# See https://tuxrun.org/ for complete documentation.

tuxrun \
--runtime podman \
--device qemu-armv7 \
--boot-args rw \
--kernel https://storage.tuxsuite.com/public/linaro/lkft/builds/2PnaP3qqppMDr51qUdKv971IZrE/zImage
\
--modules https://storage.tuxsuite.com/public/linaro/lkft/builds/2PnaP3qqppMDr51qUdKv971IZrE/modules.tar.xz
\
--rootfs https://storage.tuxboot.com/debian/bookworm/armhf/rootfs.ext4.xz \
--parameters SKIPFILE=skipfile-lkft.yaml \
--parameters KSELFTEST=https://storage.tuxsuite.com/public/linaro/lkft/builds/2PnaP3qqppMDr51qUdKv971IZrE/kselftest.tar.xz
\
--image docker.io/lavasoftware/lava-dispatcher:2023.01.0020.gc1598238f \
--tests kselftest-mincore \
--timeouts boot=30


--
Linaro LKFT
https://lkft.linaro.org