syzbot


kernel BUG in __ocfs2_flush_truncate_log

Status: upstream: reported on 2024/09/15 06:10
Reported-by: syzbot+e8dae693d1041bee4f51@syzkaller.appspotmail.com
First crash: 27d, last: 7d12h

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ocfs2/alloc.c:6002!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5321 Comm: syz-executor Not tainted 5.15.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__ocfs2_flush_truncate_log+0x1077/0x11c0 fs/ocfs2/alloc.c:6002
Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 8a fb ff ff 48 89 df e8 4a 31 9a fe e9 7d fb ff ff e8 c0 66 50 fe 0f 0b e8 b9 66 50 fe <0f> 0b 65 44 8b 2d 97 21 d2 7c bf 07 00 00 00 44 89 ee e8 02 6a 50
RSP: 0000:ffffc900031178e0 EFLAGS: 00010293
RAX: ffffffff832ff3b7 RBX: 00000000ffffffff RCX: ffff888029b01dc0
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000000
RBP: ffffc90003117af0 R08: ffffffff832fe50e R09: fffff52000622f05
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90003117a00
R13: ffff888062703338 R14: ffff888060a0fa00 R15: ffff88806b7d8800
FS:  0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7cb922b000 CR3: 000000005b8d6000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 ocfs2_flush_truncate_log+0x4b/0x60 fs/ocfs2/alloc.c:6067
 ocfs2_sync_fs+0x121/0x380 fs/ocfs2/super.c:403
 sync_filesystem+0x1bc/0x220 fs/sync.c:66
 generic_shutdown_super+0x6e/0x2c0 fs/super.c:448
 kill_block_super+0x7a/0xe0 fs/super.c:1425
 deactivate_locked_super+0xa0/0x110 fs/super.c:335
 cleanup_mnt+0x44e/0x500 fs/namespace.c:1143
 task_work_run+0x129/0x1a0 kernel/task_work.c:188
 exit_task_work include/linux/task_work.h:33 [inline]
 do_exit+0x6a3/0x2480 kernel/exit.c:874
 do_group_exit+0x144/0x310 kernel/exit.c:996
 __do_sys_exit_group kernel/exit.c:1007 [inline]
 __se_sys_exit_group kernel/exit.c:1005 [inline]
 __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1005
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f3f6ba0cff9
Code: Unable to access opcode bytes at RIP 0x7f3f6ba0cfcf.
RSP: 002b:00007fffe1e0f508 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f3f6ba7f1a6 RCX: 00007f3f6ba0cff9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000010 R08: 00007fffe1e0d2a6 R09: 00007fffe1e107c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffe1e107c0
R13: 00007f3f6ba7f134 R14: 000055555b3b44a8 R15: 00007fffe1e11880
 </TASK>
Modules linked in:
---[ end trace 2f0b8a2625cce2e5 ]---
RIP: 0010:__ocfs2_flush_truncate_log+0x1077/0x11c0 fs/ocfs2/alloc.c:6002
Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 8a fb ff ff 48 89 df e8 4a 31 9a fe e9 7d fb ff ff e8 c0 66 50 fe 0f 0b e8 b9 66 50 fe <0f> 0b 65 44 8b 2d 97 21 d2 7c bf 07 00 00 00 44 89 ee e8 02 6a 50
RSP: 0000:ffffc900031178e0 EFLAGS: 00010293
RAX: ffffffff832ff3b7 RBX: 00000000ffffffff RCX: ffff888029b01dc0
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000000
RBP: ffffc90003117af0 R08: ffffffff832fe50e R09: fffff52000622f05
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90003117a00
R13: ffff888062703338 R14: ffff888060a0fa00 R15: ffff88806b7d8800
FS:  0000000000000000(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1a51727178 CR3: 000000007b64d000 CR4: 00000000003506e0
DR0: 0000000000002800 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/05 09:37 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/30 08:36 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/30 08:34 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/30 08:34 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/30 08:28 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/30 08:28 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/23 01:50 linux-5.15.y 3a5928702e71 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/19 08:12 linux-5.15.y 3a5928702e71 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
2024/09/15 06:09 linux-5.15.y 3a5928702e71 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in __ocfs2_flush_truncate_log
* Struck through repros no longer work on HEAD.