(syz-executor,4269,1):ocfs2_check_dir_entry:325 ERROR: bad entry in directory #65: 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:6012! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 4269 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:__ocfs2_flush_truncate_log+0x1061/0x11d0 fs/ocfs2/alloc.c:6012 Code: 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c ea fb ff ff 4c 89 ef e8 e0 aa 9b fe e9 dd fb ff ff e8 16 8e 4b fe 0f 0b e8 0f 8e 4b fe <0f> 0b 65 44 8b 35 85 d7 cc 7c 48 c7 c0 70 74 1f 8e 48 c1 e8 03 48 RSP: 0018:ffffc90004367840 EFLAGS: 00010293 RAX: ffffffff83354211 RBX: ffff888052018a00 RCX: ffff88802d163b80 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000000 RBP: ffffc90004367a78 R08: dffffc0000000000 R09: fffff5200086cef1 R10: fffff5200086cef1 R11: 1ffff9200086cef0 R12: 00000000ffffffff R13: ffff888055ba3338 R14: ffff8880769a4000 R15: ffff888056e12c00 FS: 0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0622276000 CR3: 000000005cc91000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ocfs2_flush_truncate_log+0x4b/0x60 fs/ocfs2/alloc.c:6077 ocfs2_sync_fs+0x113/0x310 fs/ocfs2/super.c:402 sync_filesystem+0x1be/0x220 fs/sync.c:66 generic_shutdown_super+0x6b/0x340 fs/super.c:474 kill_block_super+0x7c/0xe0 fs/super.c:1470 deactivate_locked_super+0x93/0xf0 fs/super.c:332 cleanup_mnt+0x463/0x4f0 fs/namespace.c:1182 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 __do_sys_exit_group kernel/exit.c:1033 [inline] __se_sys_exit_group kernel/exit.c:1031 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1031 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7feb24d8ebe9 Code: Unable to access opcode bytes at 0x7feb24d8ebbf. RSP: 002b:00007ffd553b77d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007feb24e11c77 RCX: 00007feb24d8ebe9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 0000000000000010 R08: 00007ffd553b5576 R09: 00007ffd553b8a90 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd553b8a90 R13: 00007feb24e11c05 R14: 000055558cf924a8 R15: 00007ffd553b9b60 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__ocfs2_flush_truncate_log+0x1061/0x11d0 fs/ocfs2/alloc.c:6012 Code: 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c ea fb ff ff 4c 89 ef e8 e0 aa 9b fe e9 dd fb ff ff e8 16 8e 4b fe 0f 0b e8 0f 8e 4b fe <0f> 0b 65 44 8b 35 85 d7 cc 7c 48 c7 c0 70 74 1f 8e 48 c1 e8 03 48 RSP: 0018:ffffc90004367840 EFLAGS: 00010293 RAX: ffffffff83354211 RBX: ffff888052018a00 RCX: ffff88802d163b80 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000000 RBP: ffffc90004367a78 R08: dffffc0000000000 R09: fffff5200086cef1 R10: fffff5200086cef1 R11: 1ffff9200086cef0 R12: 00000000ffffffff R13: ffff888055ba3338 R14: ffff8880769a4000 R15: ffff888056e12c00 FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffda07d1cf8 CR3: 000000007bbd2000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400