syzbot


kernel BUG in ocfs2_remove_extent

Status: upstream: reported syz repro on 2025/09/02 01:23
Reported-by: syzbot+d1286cf5effed468d83c@syzkaller.appspotmail.com
First crash: 16h13m, last: 14h32m
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ocfs2_remove_extent ocfs2 -1 C error 30 1d01h 93d 0/29 upstream: reported C repro on 2025/06/01 06:11
linux-6.1 kernel BUG in ocfs2_remove_extent origin:upstream -1 syz 2 22d 22d 0/3 upstream: reported syz repro on 2025/08/11 12:06

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ocfs2/alloc.c:5574!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4585 Comm: syz.2.23 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:ocfs2_remove_extent+0x1e2a/0x1f80 fs/ocfs2/alloc.c:5574
Code: fe e9 96 fa ff ff 48 8b 0c 24 80 e1 07 fe c1 38 c1 0f 8c d6 fa ff ff 48 8b 3c 24 e8 60 f6 aa fe e9 c8 fa ff ff e8 46 90 66 fe <0f> 0b 65 44 8b 3d e4 da f0 7c bf 07 00 00 00 44 89 fe e8 8f 93 66
RSP: 0018:ffffc90002f9e640 EFLAGS: 00010293
RAX: ffffffff83113a6a RBX: ffff888069b3b4d0 RCX: ffff88807d875940
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000007
RBP: ffffc90002f9e970 R08: ffff88807d875940 R09: 0000000000000006
R10: 00000000fffffffc R11: 0000000000000000 R12: 0000000000000007
R13: 1ffff1100d36769a R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055d6cb79e168 CR3: 000000002a383000 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+0xab3/0x1b30 fs/ocfs2/alloc.c:7347
 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+0xef2/0x3e40 fs/ocfs2/inode.c:1216
 evict+0x485/0x870 fs/inode.c:647
 ocfs2_dentry_iput+0x244/0x370 fs/ocfs2/dcache.c:418
 __dentry_kill+0x431/0x650 fs/dcache.c:586
 dentry_kill+0xb8/0x290 fs/dcache.c:-1
 dput+0xd8/0x1a0 fs/dcache.c:893
 __fput+0x5ee/0x930 fs/file_table.c:319
 task_work_run+0x125/0x1a0 kernel/task_work.c:188
 exit_task_work include/linux/task_work.h:33 [inline]
 do_exit+0x61e/0x20a0 kernel/exit.c:883
 do_group_exit+0x12e/0x300 kernel/exit.c:997
 get_signal+0x6ca/0x12c0 kernel/signal.c:2900
 arch_do_signal_or_restart+0xc1/0x1300 arch/x86/kernel/signal.c:867
 handle_signal_work kernel/entry/common.c:154 [inline]
 exit_to_user_mode_loop+0x9e/0x130 kernel/entry/common.c:178
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214
 irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:320
 exc_page_fault+0x88/0x100 arch/x86/mm/fault.c:1504
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606
RIP: 0033:0x2ef0771af2
Code: Unable to access opcode bytes at RIP 0x2ef0771ac8.
RSP: 002b:0000200000000278 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007f7b5077dfa0 RCX: 00007f7b50546be9
RDX: 0000000000000000 RSI: 0000200000000270 RDI: 0000000000080000
RBP: 00007f7b505c9e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: 00007f7b5077dfa0 R14: 00007f7b5077dfa0 R15: 0000000000000006
 </TASK>
Modules linked in:
---[ end trace 3c51a5ea9601d959 ]---
RIP: 0010:ocfs2_remove_extent+0x1e2a/0x1f80 fs/ocfs2/alloc.c:5574
Code: fe e9 96 fa ff ff 48 8b 0c 24 80 e1 07 fe c1 38 c1 0f 8c d6 fa ff ff 48 8b 3c 24 e8 60 f6 aa fe e9 c8 fa ff ff e8 46 90 66 fe <0f> 0b 65 44 8b 3d e4 da f0 7c bf 07 00 00 00 44 89 fe e8 8f 93 66
RSP: 0018:ffffc90002f9e640 EFLAGS: 00010293
RAX: ffffffff83113a6a RBX: ffff888069b3b4d0 RCX: ffff88807d875940
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000007
RBP: ffffc90002f9e970 R08: ffff88807d875940 R09: 0000000000000006
R10: 00000000fffffffc R11: 0000000000000000 R12: 0000000000000007
R13: 1ffff1100d36769a R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055d6cb79e168 CR3: 000000002a383000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/02 03:04 linux-5.15.y 01879f56bdde 807a3b61 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-5-15-kasan kernel BUG in ocfs2_remove_extent
2025/09/02 02:31 linux-5.15.y 01879f56bdde 807a3b61 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-5-15-kasan kernel BUG in ocfs2_remove_extent
2025/09/02 01:23 linux-5.15.y 01879f56bdde 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ocfs2_remove_extent
* Struck through repros no longer work on HEAD.