[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4a5aa618-8fbc-4053-ba38-0809735d864b@alu.unizg.hr>
Date: Sun, 7 Jan 2024 04:03:30 +0100
From: Mirsad Todorovac <mirsad.todorovac@....unizg.hr>
To: LKML <linux-kernel@...r.kernel.org>, linux-kselftest@...r.kernel.org
Cc: Shuah Khan <shuah@...nel.org>, Andrew Morton <akpm@...ux-foundation.org>,
Jeff Xu <jeffxu@...gle.com>, Aleksa Sarai <cyphar@...har.com>,
Daniel Verkamp <dverkamp@...omium.org>, Kees Cook <keescook@...omium.org>
Subject: [BUG] selftests: memfd: run_hugetlbfs_test.sh: Hang in fuse_mnt?
Hi all,
I'm running the 6.7.0-rc8-00174-g95c8a35f1c01 kernel from torvalds tree on
a Ubuntu 23.10 Mantic Minotaur system.
What I get are these errors. memfd selftests are actually counted as "ok", but
they give errors and/or hang.
Please find the strace output attached, and the config used.
Hope this helps.
Best regards,
Mirsad
TAP version 13
1..3
# timeout set to 45
# selftests: memfd: memfd_test
# memfd: CREATE
# memfd: BASIC
# memfd: SEAL-EXEC
# memfd: Apply SEAL_EXEC
# memfd: Apply ALL_SEALS
# memfd: EXEC_NO_SEAL
# memfd: NOEXEC_SEAL
# memfd: SEAL-WRITE
# memfd: SEAL-FUTURE-WRITE
# memfd: SEAL-SHRINK
# memfd: SEAL-GROW
# memfd: SEAL-RESIZE
# memfd: sysctl 0
# memfd: sysctl 1
# memfd: sysctl 0
# memfd: sysctl 2
# memfd: sysctl 1
# memfd: sysctl 0
# memfd: nested sysctl 0
# memfd: sysctl 0
# memfd: sysctl 1
# memfd: sysctl 0
# memfd: sysctl 2
# memfd: sysctl 1
# memfd: sysctl 0
# memfd: nested sysctl 1
# memfd: nested sysctl 2
# memfd: nested sysctl 0 -> 1 after fork
# memfd: nested sysctl 0 -> 2 after fork
# memfd: nested sysctl 2 -> 1 after fork
# memfd: nested sysctl 2 -> 0 after fork
# memfd: nested sysctl 1 -> 0 after fork
# memfd: SHARE-DUP
# memfd: SHARE-MMAP
# memfd: SHARE-OPEN
# memfd: SHARE-FORK
# memfd: SHARE-DUP (shared file-table)
# memfd: SHARE-MMAP (shared file-table)
# memfd: SHARE-OPEN (shared file-table)
# memfd: SHARE-FORK (shared file-table)
# memfd: DONE
ok 1 selftests: memfd: memfd_test
# timeout set to 45
# selftests: memfd: run_fuse_test.sh
# fusermount: failed to unmount /home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd/mnt: Invalid argument
# opening: ./mnt/memfd
# fuse: DONE
ok 2 selftests: memfd: run_fuse_test.sh
# timeout set to 45
# selftests: memfd: run_hugetlbfs_test.sh
# memfd-hugetlb: CREATE
# memfd-hugetlb: BASIC
# memfd-hugetlb: SEAL-EXEC
# memfd-hugetlb: Apply SEAL_EXEC
# fchmod(/memfd:kern_memfd_seal_exec (deleted), 00777) didn't fail as expected
# ./run_hugetlbfs_test.sh: line 60: 97095 Aborted (core dumped) ./memfd_test hugetlbfs
# opening: ./mnt/memfd
# ADD_SEALS(6, 0 -> 8) failed: Device or resource busy
# 8 != 0 = GET_SEALS(6)
# Aborted (core dumped)
ok 3 selftests: memfd: run_hugetlbfs_test.sh
make[3]: Leaving directory '/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd'
--
Mirsad Goran Todorovac
Sistem inženjer
Grafički fakultet | Akademija likovnih umjetnosti
Sveučilište u Zagrebu
System engineer
Faculty of Graphic Arts | Academy of Fine Arts
University of Zagreb, Republic of Croatia
The European Union
"I see something approaching fast ... Will it be friends with me?"
Download attachment "config-6.7.0-rc8-00174-g95c8a35f1c01-dirty.xz" of type "application/x-xz" (58676 bytes)
View attachment "memfd_hugetlb.trace" of type "text/plain" (19604 bytes)
View attachment "run_fuse_test.trace" of type "text/plain" (10564 bytes)
Powered by blists - more mailing lists