syzbot
WARNING in minix_unlink
Status:
fixed on 2025/10/30 16:45
Bug presence:
origin:upstream
[Documentation on labels]
Reported-by: syzbot+66aad91cc2ecbe7d3fcc@syzkaller.appspotmail.com
Fix commit:
73861970938a
minixfs: Verify inode mode when loading from disk
First crash: 311d, last: 310d
Sample crash report:
Trying to free block not in datazone
Trying to free block not in datazone
Trying to free block not in datazone
minix_free_block (loop0:22): bit already cleared
minix_free_block (loop0:19): bit already cleared
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5902 at fs/inode.c:332 drop_nlink+0xbf/0x100 fs/inode.c:332
Modules linked in:
CPU: 1 PID: 5902 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:drop_nlink+0xbf/0x100 fs/inode.c:332
Code: 48 8b 1b 48 8d bb 78 07 00 00 be 08 00 00 00 e8 a7 5d ea ff f0 48 ff 83 78 07 00 00 5b 41 5c 41 5e 41 5f 5d c3 e8 91 10 93 ff <0f> 0b eb 88 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 62 ff ff ff 4c
RSP: 0018:ffffc90003407cb0 EFLAGS: 00010293
RAX: ffffffff81f2870f RBX: ffff88805ee00ae0 RCX: ffff88802b18da00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffea0001b3ec77 R09: 1ffffd4000367d8e
R10: dffffc0000000000 R11: fffff94000367d8f R12: 1ffff1100bdc0167
R13: 1ffff92000680f9c R14: ffff88805ee00b38 R15: dffffc0000000000
FS: 0000555568722500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055556874d648 CR3: 00000000306f4000 CR4: 00000000003506e0
Call Trace:
<TASK>
inode_dec_link_count include/linux/fs.h:2340 [inline]
minix_unlink+0x18b/0x1e0 fs/minix/namei.c:158
vfs_unlink+0x389/0x600 fs/namei.c:4325
do_unlinkat+0x328/0x570 fs/namei.c:4391
__do_sys_unlink fs/namei.c:4439 [inline]
__se_sys_unlink fs/namei.c:4437 [inline]
__x64_sys_unlink+0x49/0x50 fs/namei.c:4437
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd28518e1d7
Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcd56c9648 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fd28518e1d7
RDX: 00007ffcd56c9670 RSI: 00007ffcd56c9700 RDI: 00007ffcd56c9700
RBP: 00007ffcd56c9700 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffcd56ca7f0
R13: 00007fd285211c2d R14: 00000000000183fe R15: 00007ffcd56cb8c0
</TASK>
* Struck through repros no longer work on HEAD.