loop0: detected capacity change from 0 to 32768 JBD2: Ignoring recovery information on journal ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. ------------[ cut here ]------------ kernel BUG at fs/ocfs2/suballoc.c:1349! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5082 Comm: syz.0.15 Not tainted 6.1.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:ocfs2_block_group_set_bits+0x59b/0x730 fs/ocfs2/suballoc.c:1349 Code: ff 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c 56 fd ff ff 4c 89 ff e8 46 0b 6d fe e9 49 fd ff ff e8 3c 82 15 fe 0f 0b e8 35 82 15 fe <0f> 0b 65 44 8b 3d db ff 8c 7c 48 c7 c0 b8 f9 9a 8e 48 c1 e8 03 48 RSP: 0018:ffffc90003625780 EFLAGS: 00010293 RAX: ffffffff837519bb RBX: 00000000000001ff RCX: ffff88802b7d3b80 RDX: 0000000000000000 RSI: 0000000000000800 RDI: 00000000000001ff RBP: ffffc90003625870 R08: ffffffff837514f8 R09: 0000000000000800 R10: 0000000000000006 R11: ffff88802b7d3b80 R12: 0000000000000800 R13: 00000000000001fb R14: ffff88805ab68000 R15: dffffc0000000000 FS: 00007ffa41f576c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2ec5ffff CR3: 000000002c844000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ocfs2_search_chain+0x19ff/0x2640 fs/ocfs2/suballoc.c:1847 ocfs2_claim_suballoc_bits+0x1798/0x2560 fs/ocfs2/suballoc.c:1958 __ocfs2_claim_clusters+0x327/0xa30 fs/ocfs2/suballoc.c:2338 ocfs2_local_alloc_new_window fs/ocfs2/localalloc.c:1189 [inline] ocfs2_local_alloc_slide_window fs/ocfs2/localalloc.c:1318 [inline] ocfs2_reserve_local_alloc_bits+0x1467/0x29d0 fs/ocfs2/localalloc.c:668 ocfs2_reserve_clusters_with_limit+0x1b4/0xb50 fs/ocfs2/suballoc.c:1162 ocfs2_reserve_clusters fs/ocfs2/suballoc.c:1223 [inline] ocfs2_lock_allocators+0x306/0x620 fs/ocfs2/suballoc.c:2669 ocfs2_write_begin_nolock+0x271a/0x4e40 fs/ocfs2/aops.c:1740 ocfs2_dio_wr_get_block+0xc29/0x1920 fs/ocfs2/aops.c:2239 get_more_blocks fs/direct-io.c:665 [inline] do_direct_IO fs/direct-io.c:953 [inline] __blockdev_direct_IO+0x1d00/0x4810 fs/direct-io.c:1266 ocfs2_direct_IO+0x250/0x2c0 fs/ocfs2/aops.c:2468 generic_file_direct_write+0x204/0x460 mm/filemap.c:3769 __generic_file_write_iter+0x1c4/0x400 mm/filemap.c:3929 ocfs2_file_write_iter+0x17c6/0x2020 fs/ocfs2/file.c:2467 do_iter_write+0x6e6/0xc40 fs/read_write.c:861 iter_file_splice_write+0x830/0xfc0 fs/splice.c:685 do_splice_from fs/splice.c:763 [inline] direct_splice_actor+0xe3/0x1c0 fs/splice.c:950 splice_direct_to_actor+0x4c7/0xc30 fs/splice.c:896 do_splice_direct+0x2a5/0x3e0 fs/splice.c:1002 do_sendfile+0x619/0xff0 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x178/0x1e0 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7ffa41180809 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffa41f57058 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007ffa41345fa0 RCX: 00007ffa41180809 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004 RBP: 00007ffa411f393e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000800000009 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffa41345fa0 R15: 00007ffcd6cd1ae8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_block_group_set_bits+0x59b/0x730 fs/ocfs2/suballoc.c:1349 Code: ff 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c 56 fd ff ff 4c 89 ff e8 46 0b 6d fe e9 49 fd ff ff e8 3c 82 15 fe 0f 0b e8 35 82 15 fe <0f> 0b 65 44 8b 3d db ff 8c 7c 48 c7 c0 b8 f9 9a 8e 48 c1 e8 03 48 RSP: 0018:ffffc90003625780 EFLAGS: 00010293 RAX: ffffffff837519bb RBX: 00000000000001ff RCX: ffff88802b7d3b80 RDX: 0000000000000000 RSI: 0000000000000800 RDI: 00000000000001ff RBP: ffffc90003625870 R08: ffffffff837514f8 R09: 0000000000000800 R10: 0000000000000006 R11: ffff88802b7d3b80 R12: 0000000000000800 R13: 00000000000001fb R14: ffff88805ab68000 R15: dffffc0000000000 FS: 00007ffa41f576c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2ec5ffff CR3: 000000002c844000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400