syzbot
divide error in ufs_iget
Status:
upstream: reported on 2026/08/04 23:53
Reported-by: syzbot+b9cd0fd1f60aeaf5ce69@syzkaller.appspotmail.com
First crash: 24d, last: 24d
Sample crash report:
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 6768 Comm: syz.0.90 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:ufs_iget+0x36b/0x2610 fs/ufs/inode.c:678
Code: 48 81 c6 68 01 00 00 48 89 f1 48 c1 e9 03 48 89 4c 24 48 42 0f b6 0c 01 84 c9 4d 89 c6 48 89 74 24 20 0f 85 08 19 00 00 31 d2 <f7> 36 41 89 c7 48 03 5c 24 40 48 01 fb 48 8b 04 24 48 8d b8 60 01
RSP: 0018:ffffc900045bfa50 EFLAGS: 00010246
RAX: 0000000000000002 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff88805c716168 RDI: 000000000000000b
RBP: ffff88807de24630 R08: dffffc0000000000 R09: 1ffffffff19c28e0
R10: dffffc0000000000 R11: fffffbfff19c28e1 R12: ffff88805a6701a8
R13: 1ffff1100fbc48c6 R14: dffffc0000000000 R15: ffff88805c716080
FS: 00007f4c38f5a6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000005000 CR3: 000000006257e000 CR4: 00000000003506e0
Call Trace:
<TASK>
ufs_fill_super+0x4878/0x68c0 fs/ufs/super.c:1271
mount_bdev+0x21c/0x2c0 fs/super.c:1643
legacy_get_tree+0xea/0x180 fs/fs_context.c:662
vfs_get_tree+0x8c/0x280 fs/super.c:1764
do_new_mount+0x24a/0xa40 fs/namespace.c:3386
do_mount fs/namespace.c:3726 [inline]
__do_sys_mount fs/namespace.c:3935 [inline]
__se_sys_mount+0x2e7/0x3d0 fs/namespace.c:3912
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f4c37f9e019
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4c38f5a028 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f4c38225fa0 RCX: 00007f4c37f9e019
RDX: 0000200000004000 RSI: 0000200000003000 RDI: 0000200000000040
RBP: 00007f4c3803500c R08: 0000200000005000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4c38226038 R14: 00007f4c38225fa0 R15: 00007fff0c7c5d38
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ufs_iget+0x36b/0x2610 fs/ufs/inode.c:678
Code: 48 81 c6 68 01 00 00 48 89 f1 48 c1 e9 03 48 89 4c 24 48 42 0f b6 0c 01 84 c9 4d 89 c6 48 89 74 24 20 0f 85 08 19 00 00 31 d2 <f7> 36 41 89 c7 48 03 5c 24 40 48 01 fb 48 8b 04 24 48 8d b8 60 01
RSP: 0018:ffffc900045bfa50 EFLAGS: 00010246
RAX: 0000000000000002 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff88805c716168 RDI: 000000000000000b
RBP: ffff88807de24630 R08: dffffc0000000000 R09: 1ffffffff19c28e0
R10: dffffc0000000000 R11: fffffbfff19c28e1 R12: ffff88805a6701a8
R13: 1ffff1100fbc48c6 R14: dffffc0000000000 R15: ffff88805c716080
FS: 00007f4c38f5a6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f967f9eb700 CR3: 000000006257e000 CR4: 00000000003506e0
----------------
Code disassembly (best guess):
0: 48 81 c6 68 01 00 00 add $0x168,%rsi
7: 48 89 f1 mov %rsi,%rcx
a: 48 c1 e9 03 shr $0x3,%rcx
e: 48 89 4c 24 48 mov %rcx,0x48(%rsp)
13: 42 0f b6 0c 01 movzbl (%rcx,%r8,1),%ecx
18: 84 c9 test %cl,%cl
1a: 4d 89 c6 mov %r8,%r14
1d: 48 89 74 24 20 mov %rsi,0x20(%rsp)
22: 0f 85 08 19 00 00 jne 0x1930
28: 31 d2 xor %edx,%edx
* 2a: f7 36 divl (%rsi) <-- trapping instruction
2c: 41 89 c7 mov %eax,%r15d
2f: 48 03 5c 24 40 add 0x40(%rsp),%rbx
34: 48 01 fb add %rdi,%rbx
37: 48 8b 04 24 mov (%rsp),%rax
3b: 48 rex.W
3c: 8d .byte 0x8d
3d: b8 .byte 0xb8
3e: 60 (bad)
3f: 01 .byte 0x1
* Struck through repros no longer work on HEAD.