(syz-executor,5637,1):ocfs2_check_dir_entry:325 ERROR: bad entry in directory #17: rec_len is smaller than minimal - offset=0, inode=0, rec_len=0, name_len=0 ------------[ cut here ]------------ kernel BUG at fs/ocfs2/alloc.c:6002! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5637 Comm: syz-executor Not tainted 5.15.171-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 ca 6a 9a fe e9 7d fb ff ff e8 d0 92 50 fe 0f 0b e8 c9 92 50 fe <0f> 0b 65 44 8b 2d 67 34 d2 7c bf 07 00 00 00 44 89 ee e8 12 96 50 RSP: 0018:ffffc90002da78e0 EFLAGS: 00010293 RAX: ffffffff832fe0e7 RBX: 00000000ffffffff RCX: ffff88802bd99dc0 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000000 RBP: ffffc90002da7af0 R08: ffffffff832fd23e R09: fffff520005b4f05 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90002da7a00 R13: ffff8880622424f8 R14: ffff88805fe46a00 R15: ffff888064e2a000 FS: 0000000000000000(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff8f82d3000 CR3: 00000000729bc000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: 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+0x6b/0x310 fs/super.c:448 kill_block_super+0x7a/0xe0 fs/super.c:1427 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:0x7fbaeb23a719 Code: Unable to access opcode bytes at RIP 0x7fbaeb23a6ef. RSP: 002b:00007ffd73695db8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007fbaeb2ad2ae RCX: 00007fbaeb23a719 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 0000000000000010 R08: 00007ffd73693b56 R09: 00007ffd73697070 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd73697070 R13: 00007fbaeb2ad23c R14: 0000555579a464a8 R15: 00007ffd73698130 Modules linked in: ---[ end trace 206d838c13578709 ]--- 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 ca 6a 9a fe e9 7d fb ff ff e8 d0 92 50 fe 0f 0b e8 c9 92 50 fe <0f> 0b 65 44 8b 2d 67 34 d2 7c bf 07 00 00 00 44 89 ee e8 12 96 50 RSP: 0018:ffffc90002da78e0 EFLAGS: 00010293 RAX: ffffffff832fe0e7 RBX: 00000000ffffffff RCX: ffff88802bd99dc0 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000000 RBP: ffffc90002da7af0 R08: ffffffff832fd23e R09: fffff520005b4f05 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90002da7a00 R13: ffff8880622424f8 R14: ffff88805fe46a00 R15: ffff888064e2a000 FS: 0000000000000000(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff8fa249178 CR3: 00000000729bc000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400