run_hugetlbfs_test.sh in memfd of ubuntu_kernel_selftests causing sut-test failure on J-6.8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned |
Bug Description
Found on Jammy 6.8 variants since 2024.04.29:
* J-oracle-
* J-azure-
* J-aws-6.
* J-gcp-6.
* J-hwe-6.
* J-ibm-6.
* J-lowlatency-
* J-nvidia-
* J-realtime-
When trying to run the memfd test in ubuntu_
$ cd ~/autotest/
$ sudo make TARGETS=memfd
$ cd memfd
$ sudo ./run_hugetlbfs
memfd-hugetlb: CREATE
memfd-hugetlb: BASIC
memfd-hugetlb: SEAL-EXEC
memfd-hugetlb: Apply SEAL_EXEC
fchmod(
./run_hugetlbfs
fusermount: failed to unmount /home/ubuntu/
eopening: ./mnt/memfd
cho $?ADD_SEALS(4, 0 -> 8) failed: Device or resource busy
8 != 0 = GET_SEALS(4)
Aborted (core dumped)
$ echo $?
0
$ ps aux | grep fuse
root 1431 0.0 0.0 150776 1292 ? Ssl 01:50 0:00 ./fuse_mnt ./mnt
ubuntu 1454 0.0 0.0 7008 2304 pts/0 S+ 01:50 0:00 grep --color=auto fuse
$ sudo strace -p 1431
strace: Process 1431 attached
futex(0x7fff973
^C
Nothing interesting in dmesg output.
description: | updated |
This is not affect Noble 6.8, despite the test output is identical:
Running 'make run_tests -C memfd TEST_PROGS= run_hugetlbfs_ test.sh TEST_GEN_PROGS='' TEST_CUSTOM_ PROGS=' '' ubuntu/ autotest/ client/ tmp/ubuntu_ kernel_ selftests/ src/linux/ tools/testing/ selftests/ memfd' test.sh /memfd: kern_memfd_ seal_exec (deleted), 00777) didn't fail as expected _test.sh: line 60: 15915 Aborted (core dumped) ./memfd_test hugetlbfs test.sh
make: Entering directory '/home/
TAP version 13
1..1
# timeout set to 45
# selftests: memfd: run_hugetlbfs_
# memfd-hugetlb: CREATE
# memfd-hugetlb: BASIC
# memfd-hugetlb: SEAL-EXEC
# memfd-hugetlb: Apply SEAL_EXEC
# fchmod(
# ./run_hugetlbfs
# opening: ./mnt/memfd
# ADD_SEALS(6, 0 -> 8) failed: Device or resource busy
# 8 != 0 = GET_SEALS(6)
# Aborted (core dumped)
ok 1 selftests: memfd: run_hugetlbfs_