Closed
Description
System information
Type | Version/Name |
---|---|
Distribution Name | Archlinux |
Distribution Version | rolling |
Linux Kernel | 5.10.6-arch1-1 |
Architecture | x86_64 |
ZFS Version | 2.0.1-1 |
SPL Version | 2.0.1-1 |
Describe the problem you're observing
A couple of days ago, a program (running under Wine, if it matters) either created a corrupted file or caused some system failure that made the file mode become 0.
Since those were only log files, I renamed the enclosing dir to stop the program from trying to access them.
Comparing with other log files created by the application, the correct mode for this file should be S_IFREG|S_ISVTX|0777
.
It is stored under a directory with mode S_IFDIR|S_ISUID|S_ISGID|S_ISVTX|0777
and everything is owned by my user.
The pool is backed by a single SATA SSD. I already ran a scrub but no errors were reported.
Describe how to reproduce the problem
I couldn't find a way to reproduce the creation of such corrupted files, but any attempt to access the existing ones will hang with a kernel panic.
Include any warning/errors/backtraces from the system logs
PANIC: inode 716430 has invalid mode: 0x0
Showing stack for process 30162
CPU: 0 PID: 30162 Comm: tree Tainted: P OE 5.10.6-arch1-1 #1
Hardware name: LENOVO 20217/VIQY0Y1, BIOS 74CN47WW(V3.08) 1/30/2015
Call Trace:
dump_stack+0x6b/0x83
vcmn_err.cold+0x58/0x80 [spl]
zfs_panic_recover+0x75/0x90 [zfs]
zfs_znode_alloc+0x6d8/0x740 [zfs]
zfs_zget+0x270/0x2b0 [zfs]
zfs_dirent_lock+0x36c/0x6c0 [zfs]
zfs_dirlook+0xad/0x2d0 [zfs]
? zfs_zaccess+0x127/0x490 [zfs]
zfs_lookup+0x1e6/0x3d0 [zfs]
zpl_lookup+0xf2/0x210 [zfs]
? step_into+0xd3/0x700
__lookup_slow+0x85/0x140
walk_component+0x141/0x1b0
path_lookupat+0x5b/0x190
filename_lookup+0xbe/0x1d0
vfs_statx+0x86/0x140
__do_sys_newlstat+0x47/0x80
do_syscall_64+0x33/0x40
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7fcf46b6631a
Code: ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 41 89 f8 48 89 f7 48 89 d6 41 83 f8 01 77 2d b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 8b 15 21 1b 0d 00 f7
RSP: 002b:00007ffc141c4ec8 EFLAGS: 00000246 ORIG_RAX: 0000000000000006
RAX: ffffffffffffffda RBX: 0000000000000021 RCX: 00007fcf46b6631a
RDX: 00007ffc141c4f10 RSI: 00007ffc141c4f10 RDI: 000055b340320240
RBP: 00007ffc141c5050 R08: 0000000000000001 R09: 00007fcf46bfd0c0
R10: 00007fcf46bfcfc0 R11: 0000000000000246 R12: 000055b3402fc420
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000