syzbot


kernel BUG in ocfs2_remove_extent

Status: upstream: reported syz repro on 2025/08/11 12:06
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+8abfb36e428abc49ae66@syzkaller.appspotmail.com
First crash: 16d, last: 16d
Bug presence (1)
Date Name Commit Repro Result
2025/08/14 upstream (ToT) dfc0f6373094 syz [report] kernel BUG in ocfs2_remove_extent
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ocfs2_remove_extent ocfs2 -1 syz error 26 1d17h 87d 0/29 upstream: reported syz repro on 2025/06/01 06:11

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ocfs2/alloc.c:5574!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4435 Comm: syz.0.17 Not tainted 6.1.147-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:ocfs2_remove_extent+0x1e70/0x2010 fs/ocfs2/alloc.c:5574
Code: fe e9 70 fa ff ff 48 8b 0c 24 80 e1 07 fe c1 38 c1 0f 8c b0 fa ff ff 48 8b 3c 24 e8 0a 56 9c fe e9 a2 fa ff ff e8 a0 39 4c fe <0f> 0b 65 44 8b 3d 56 8c cd 7c 48 c7 c0 b0 4d 1f 8e 48 c1 e8 03 42
RSP: 0018:ffffc90003456560 EFLAGS: 00010293
RAX: ffffffff83348d40 RBX: ffff888058e3d4d0 RCX: ffff88807c4a8000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000007
RBP: ffffc90003456890 R08: ffff88807c4a8000 R09: 0000000000000006
R10: 00000000fffffffc R11: 0000000000000000 R12: 0000000000000007
R13: 1ffff1100b1c7a9a R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c008203000 CR3: 000000000c88e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ocfs2_remove_btree_range+0xd92/0x1480 fs/ocfs2/alloc.c:5771
 ocfs2_commit_truncate+0xaf5/0x1bf0 fs/ocfs2/alloc.c:7354
 ocfs2_truncate_for_delete fs/ocfs2/inode.c:623 [inline]
 ocfs2_wipe_inode fs/ocfs2/inode.c:790 [inline]
 ocfs2_delete_inode fs/ocfs2/inode.c:1079 [inline]
 ocfs2_evict_inode+0x10d5/0x41e0 fs/ocfs2/inode.c:1216
 evict+0x485/0x870 fs/inode.c:705
 ocfs2_dentry_iput+0x244/0x370 fs/ocfs2/dcache.c:418
 __dentry_kill+0x431/0x650 fs/dcache.c:611
 dentry_kill+0xb8/0x290 fs/dcache.c:-1
 dput+0xfa/0x1d0 fs/dcache.c:918
 __fput+0x5e0/0x920 fs/file_table.c:328
 task_work_run+0x1ca/0x250 kernel/task_work.c:203
 exit_task_work include/linux/task_work.h:39 [inline]
 do_exit+0x93e/0x2400 kernel/exit.c:880
 do_group_exit+0x217/0x2d0 kernel/exit.c:1022
 get_signal+0x1272/0x1350 kernel/signal.c:2871
 arch_do_signal_or_restart+0xb0/0x1230 arch/x86/kernel/signal.c:871
 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:316
 exc_page_fault+0x88/0x100 arch/x86/mm/fault.c:1490
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:608
RIP: 0033:0x7f13a764f927
Code: Unable to access opcode bytes at 0x7f13a764f8fd.
RSP: 002b:00007f13a85c7120 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 000000000000000b RCX: 00007f13a778ebe9
RDX: 00007f13a85c7140 RSI: 00007f13a85c7270 RDI: 000000000000000b
RBP: 00007f13a7811e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: 00007f13a79b6038 R14: 00007f13a79b5fa0 R15: 00007ffc39379618
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_remove_extent+0x1e70/0x2010 fs/ocfs2/alloc.c:5574
Code: fe e9 70 fa ff ff 48 8b 0c 24 80 e1 07 fe c1 38 c1 0f 8c b0 fa ff ff 48 8b 3c 24 e8 0a 56 9c fe e9 a2 fa ff ff e8 a0 39 4c fe <0f> 0b 65 44 8b 3d 56 8c cd 7c 48 c7 c0 b0 4d 1f 8e 48 c1 e8 03 42
RSP: 0018:ffffc90003456560 EFLAGS: 00010293
RAX: ffffffff83348d40 RBX: ffff888058e3d4d0 RCX: ffff88807c4a8000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000007
RBP: ffffc90003456890 R08: ffff88807c4a8000 R09: 0000000000000006
R10: 00000000fffffffc R11: 0000000000000000 R12: 0000000000000007
R13: 1ffff1100b1c7a9a R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6b153a1796 CR3: 000000007e591000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/11 14:17 linux-6.1.y 3594f306da12 32a0e5ed .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-1-kasan kernel BUG in ocfs2_remove_extent
2025/08/11 12:06 linux-6.1.y 3594f306da12 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ocfs2_remove_extent
* Struck through repros no longer work on HEAD.