loop0: detected capacity change from 32768 to 0 ------------[ cut here ]------------ kernel BUG at fs/ocfs2/suballoc.c:804! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5330 Comm: syz.0.0 Not tainted 6.12.0-syzkaller-07749-g28eb75e178d3 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:ocfs2_reserve_suballoc_bits+0x479b/0x4eb0 fs/ocfs2/suballoc.c:804 Code: e1 07 80 c1 03 38 c1 0f 8c 75 dd ff ff 48 8d bc 24 b0 01 00 00 e8 35 cb 72 fe e9 63 dd ff ff e8 4b bc 39 08 e8 66 17 08 fe 90 <0f> 0b e8 5e 17 08 fe 48 c7 c7 60 6f e3 8e 48 8b 74 24 28 48 89 da RSP: 0018:ffffc900017c6400 EFLAGS: 00010283 RAX: ffffffff838d351a RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc9000f0f1000 RSI: 000000000000046f RDI: 0000000000000470 RBP: ffffc900017c68f0 R08: ffffffff838ceff5 R09: 1ffffffff203b736 R10: dffffc0000000000 R11: fffffbfff203b737 R12: 1ffff920002f8d00 R13: ffff888042f1f900 R14: ffff8880556d3e00 R15: dffffc0000000000 FS: 00007f7494ab36c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f74889ff000 CR3: 0000000044076000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ocfs2_reserve_cluster_bitmap_bits fs/ocfs2/suballoc.c:1132 [inline] ocfs2_reserve_clusters_with_limit+0x3dd/0xb60 fs/ocfs2/suballoc.c:1177 ocfs2_reserve_clusters fs/ocfs2/suballoc.c:1227 [inline] ocfs2_lock_allocators+0x30a/0x630 fs/ocfs2/suballoc.c:2746 ocfs2_write_begin_nolock+0x26f2/0x4ec0 fs/ocfs2/aops.c:1738 ocfs2_write_begin+0x205/0x3a0 fs/ocfs2/aops.c:1902 generic_perform_write+0x344/0x6d0 mm/filemap.c:4056 ocfs2_file_write_iter+0x17b1/0x1f50 fs/ocfs2/file.c:2467 iter_file_splice_write+0xbfa/0x1510 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x11b/0x220 fs/splice.c:1164 splice_direct_to_actor+0x586/0xc80 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x289/0x3e0 fs/splice.c:1233 vfs_copy_file_range+0xd1f/0x1510 fs/read_write.c:1620 __do_sys_copy_file_range fs/read_write.c:1670 [inline] __se_sys_copy_file_range+0x3fa/0x600 fs/read_write.c:1637 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7493d7e819 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:00007f7494ab3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 RAX: ffffffffffffffda RBX: 00007f7493f36080 RCX: 00007f7493d7e819 RDX: 000000000000000e RSI: 0000000000000000 RDI: 000000000000000f RBP: 00007f7493df175e R08: 0000000000003df1 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f7493f36080 R15: 00007ffd096b7518 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_reserve_suballoc_bits+0x479b/0x4eb0 fs/ocfs2/suballoc.c:804 Code: e1 07 80 c1 03 38 c1 0f 8c 75 dd ff ff 48 8d bc 24 b0 01 00 00 e8 35 cb 72 fe e9 63 dd ff ff e8 4b bc 39 08 e8 66 17 08 fe 90 <0f> 0b e8 5e 17 08 fe 48 c7 c7 60 6f e3 8e 48 8b 74 24 28 48 89 da RSP: 0018:ffffc900017c6400 EFLAGS: 00010283 RAX: ffffffff838d351a RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc9000f0f1000 RSI: 000000000000046f RDI: 0000000000000470 RBP: ffffc900017c68f0 R08: ffffffff838ceff5 R09: 1ffffffff203b736 R10: dffffc0000000000 R11: fffffbfff203b737 R12: 1ffff920002f8d00 R13: ffff888042f1f900 R14: ffff8880556d3e00 R15: dffffc0000000000 FS: 00007f7494ab36c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f74889ff000 CR3: 0000000044076000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400