Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fanotify22.c:59: TBROK: mount(/dev/loop0, test_mnt, ext4, 33, 0x2b348) failed: EROFS (30) since 6.12 #1206

Open
andreas-schwab opened this issue Oct 22, 2024 · 5 comments

Comments

@andreas-schwab
Copy link
Contributor

andreas-schwab commented Oct 22, 2024

This was introduced by kernel commit d3476f3dad4a ("ext4: don't set SB_RDONLY after filesystem errors").

# ./fanotify22 
tst_tmpdir.c:316: TINFO: Using /tmp/LTP_fanTPCu93 as tmpdir (tmpfs filesystem)
tst_device.c:96: TINFO: Found free device 0 '/dev/loop0'
tst_test.c:1112: TINFO: Formatting /dev/loop0 with ext4 opts='' extra opts=''
mke2fs 1.47.0 (5-Feb-2023)
tst_test.c:1124: TINFO: Mounting /dev/loop0 to /tmp/LTP_fanTPCu93/test_mnt fstyp=ext4 flags=0
tst_test.c:1809: TINFO: LTP version: 20240524-247-g5eaf8ecb9
tst_test.c:1813: TINFO: Tested kernel: 6.12.0-rc4-102-default #1 SMP PREEMPT_DYNAMIC Sun Oct 20 22:44:57 UTC 2024 (f83465d) riscv64
tst_test.c:1652: TINFO: Timeout per run is 0h 00m 30s
fanotify.h:122: TINFO: fid(test_mnt/internal_dir/bad_dir) = e443762c.b1cc0c80.7e82.2f7d5ba4.0...
fanotify.h:122: TINFO: fid(test_mnt/internal_dir) = e443762c.b1cc0c80.7e81.68d9f183.0...
fanotify22.c:278: TINFO: Umounting /tmp/LTP_fanTPCu93/test_mnt
debugfs 1.47.0 (5-Feb-2023)
debugfs 1.47.0 (5-Feb-2023)
fanotify22.c:281: TINFO: Mounting /dev/loop0 to /tmp/LTP_fanTPCu93/test_mnt fstyp=ext4 flags=0
fanotify.h:122: TINFO: fid(test_mnt) = e443762c.b1cc0c80.2.0.0...
fanotify22.c:59: TINFO: Mounting /dev/loop0 to /tmp/LTP_fanTPCu93/test_mnt fstyp=ext4 flags=21
fanotify22.c:59: TBROK: mount(/dev/loop0, test_mnt, ext4, 33, 0x2b348) failed: EROFS (30)

HINT: You _MAY_ be missing kernel fixes:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=124e7c61deb2

Summary:
passed   0
failed   0
broken   1
skipped  0
warnings 0
@pevik pevik added the bug label Oct 22, 2024
@pevik pevik changed the title fanotify22.c:59: TBROK: mount(/dev/loop0, test_mnt, ext4, 33, 0x2b348) failed: EROFS (30) fanotify22.c:59: TBROK: mount(/dev/loop0, test_mnt, ext4, 33, 0x2b348) failed: EROFS (30) since 6.12 Oct 22, 2024
@metan-ucw
Copy link
Member

This is a known issue, @jankara has a in-flight kernel fix.

@pevik
Copy link
Member

pevik commented Oct 22, 2024

For a record, it TCONF on 6.11, at least on ext4, with underlying btrfs:

tst_tmpdir.c:316: TINFO: Using /var/tmp/LTP_fanTSvknT as tmpdir (btrfs filesystem)
tst_device.c:96: TINFO: Found free device 0 '/dev/loop0'
tst_test.c:1171: TINFO: Formatting /dev/loop0 with ext4 opts='' extra opts=''
mke2fs 1.47.0 (5-Feb-2023)
tst_test.c:1183: TINFO: Mounting /dev/loop0 to /var/tmp/LTP_fanTSvknT/test_mnt fstyp=ext4 flags=0
tst_test.c:1888: TINFO: LTP version: 20240930
tst_test.c:1892: TINFO: Tested kernel: 6.11.3-2-default #1 SMP PREEMPT_DYNAMIC Fri Oct 11 06:48:36 UTC 2024 (7881e90) x86_64
tst_test.c:1723: TINFO: Timeout per run is 0h 00m 30s
fanotify22.c:297: TCONF: FAN_FS_ERROR not supported on ext4 filesystem

@metan-ucw
Copy link
Member

There it is https://lore.kernel.org/linux-ext4/[email protected]/

@pevik pevik removed the bug label Oct 22, 2024
@pevik
Copy link
Member

pevik commented Nov 28, 2024

FYI it's already merged to Linus' master branch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=76486b104168ae59703190566e372badf433314b.

@metan-ucw Shouldn't we add the commit to the "linux-git" tags? Or should it wait till kernel 6.13 is released?

@metan-ucw
Copy link
Member

metan-ucw commented Nov 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants