syzbot


kernel BUG in __ocfs2_flush_truncate_log

Status: upstream: reported on 2025/07/07 06:01
Reported-by: syzbot+435ebc74366bec560db2@syzkaller.appspotmail.com
First crash: 70d, last: 25d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in __ocfs2_flush_truncate_log origin:upstream -1 C error 8 6d21h 175d 0/3 upstream: reported C repro on 2025/03/24 18:56
linux-5.15 kernel BUG in __ocfs2_flush_truncate_log origin:upstream -1 C 101 15h49m 365d 0/3 upstream: reported C repro on 2024/09/15 06:10

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ocfs2/alloc.c:6012!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 7219 Comm: syz-executor Not tainted 6.6.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:__ocfs2_flush_truncate_log+0xf7e/0x10b0 fs/ocfs2/alloc.c:6012
Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 28 fc ff ff 48 89 df e8 33 bb 93 fe e9 1b fc ff ff e8 79 73 3c fe 0f 0b e8 72 73 3c fe <0f> 0b f3 0f 1e fa 65 44 8b 35 50 a2 ba 7c bf 07 00 00 00 44 89 f6
RSP: 0000:ffffc900033479c0 EFLAGS: 00010293
RAX: ffffffff834917ae RBX: ffff888078764000 RCX: ffff88807ce25a00
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000000
RBP: ffffc90003347bd8 R08: ffffc90003347947 R09: 1ffff92000668f28
R10: dffffc0000000000 R11: fffff52000668f29 R12: 00000000ffffffff
R13: ffff88805c506c38 R14: ffff888055438a00 R15: ffff88805ca62c00
FS:  000055558176c500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000000 CR3: 0000000074427000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 ocfs2_flush_truncate_log+0x4f/0x60 fs/ocfs2/alloc.c:6077
 ocfs2_sync_fs+0x117/0x310 fs/ocfs2/super.c:402
 sync_filesystem+0x1c2/0x220 fs/sync.c:66
 generic_shutdown_super+0x6f/0x2b0 fs/super.c:666
 kill_block_super+0x44/0x90 fs/super.c:1660
 deactivate_locked_super+0x97/0x100 fs/super.c:481
 cleanup_mnt+0x429/0x4c0 fs/namespace.c:1250
 task_work_run+0x1ce/0x250 kernel/task_work.c:239
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f10de98ff17
Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fffcc1e6038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f10dea11c05 RCX: 00007f10de98ff17
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fffcc1e60f0
RBP: 00007fffcc1e60f0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fffcc1e7180
R13: 00007f10dea11c05 R14: 0000000000037560 R15: 00007fffcc1e71c0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__ocfs2_flush_truncate_log+0xf7e/0x10b0 fs/ocfs2/alloc.c:6012
Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 28 fc ff ff 48 89 df e8 33 bb 93 fe e9 1b fc ff ff e8 79 73 3c fe 0f 0b e8 72 73 3c fe <0f> 0b f3 0f 1e fa 65 44 8b 35 50 a2 ba 7c bf 07 00 00 00 44 89 f6
RSP: 0000:ffffc900033479c0 EFLAGS: 00010293
RAX: ffffffff834917ae RBX: ffff888078764000 RCX: ffff88807ce25a00
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000000
RBP: ffffc90003347bd8 R08: ffffc90003347947 R09: 1ffff92000668f28
R10: dffffc0000000000 R11: fffff52000668f29 R12: 00000000ffffffff
R13: ffff88805c506c38 R14: ffff888055438a00 R15: ffff88805ca62c00
FS:  000055558176c500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000001000 CR3: 0000000074427000 CR4: 00000000003506e0

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/21 17:10 linux-6.6.y bb9c90ab9c5a 3e79b825 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in __ocfs2_flush_truncate_log
2025/07/10 05:33 linux-6.6.y a5df3a702b2c 956bd956 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in __ocfs2_flush_truncate_log
2025/07/07 06:00 linux-6.6.y a5df3a702b2c 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in __ocfs2_flush_truncate_log
* Struck through repros no longer work on HEAD.