loop0: detected capacity change from 32768 to 0 ------------[ cut here ]------------ kernel BUG at fs/ocfs2/alloc.c:2721! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted 6.14.0-rc2-syzkaller-00185-g128c8f96eb86 #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_rotate_subtree_left fs/ocfs2/alloc.c:2721 [inline] RIP: 0010:__ocfs2_rotate_tree_left+0x2fd5/0x3010 fs/ocfs2/alloc.c:2977 Code: fe 90 0f 0b e8 fc 84 0b fe 90 0f 0b e8 f4 84 0b fe 90 0f 0b e8 ec 84 0b fe 90 0f 0b e8 e4 84 0b fe 90 0f 0b e8 dc 84 0b fe 90 <0f> 0b 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 0f 8c 8c fd ff ff 48 8b RSP: 0018:ffffc9000d1fe500 EFLAGS: 00010287 RAX: ffffffff83b63284 RBX: 0000000000000000 RCX: 0000000000100000 RDX: ffffc9000f7db000 RSI: 0000000000001534 RDI: 0000000000001535 RBP: ffffc9000d1fe8d0 R08: ffffffff83b61abd R09: ffffffff83b616d6 R10: 0000000000000006 R11: ffff8880006f4880 R12: ffff88804000a780 R13: 1ffff92001a3fccc R14: 0000000000000000 R15: dffffc0000000000 FS: 00007fe4b5c0e6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe4b5bcbfe0 CR3: 000000003415a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ocfs2_rotate_tree_left+0x326/0xdc0 fs/ocfs2/alloc.c:3229 ocfs2_truncate_rec+0x1547/0x1c90 fs/ocfs2/alloc.c:5502 ocfs2_remove_extent+0x106f/0x26f0 fs/ocfs2/alloc.c:5581 ocfs2_remove_btree_range+0xfde/0x1860 fs/ocfs2/alloc.c:5770 ocfs2_remove_inode_range+0xff3/0x29c0 fs/ocfs2/file.c:1907 ocfs2_reflink_remap_extent fs/ocfs2/refcounttree.c:4534 [inline] ocfs2_reflink_remap_blocks+0xcd4/0x1f30 fs/ocfs2/refcounttree.c:4681 ocfs2_remap_file_range+0x5fa/0x8d0 fs/ocfs2/file.c:2740 vfs_copy_file_range+0xc07/0x14f0 fs/read_write.c:1584 __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:0x7fe4b4d8cde9 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:00007fe4b5c0e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 RAX: ffffffffffffffda RBX: 00007fe4b4fa6080 RCX: 00007fe4b4d8cde9 RDX: 0000000000000004 RSI: 0000000000000000 RDI: 000000000000000c RBP: 00007fe4b4e0e2a0 R08: fffffbffa003e45c R09: 0700000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe4b4fa6080 R15: 00007ffeddbbb688 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_rotate_subtree_left fs/ocfs2/alloc.c:2721 [inline] RIP: 0010:__ocfs2_rotate_tree_left+0x2fd5/0x3010 fs/ocfs2/alloc.c:2977 Code: fe 90 0f 0b e8 fc 84 0b fe 90 0f 0b e8 f4 84 0b fe 90 0f 0b e8 ec 84 0b fe 90 0f 0b e8 e4 84 0b fe 90 0f 0b e8 dc 84 0b fe 90 <0f> 0b 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 0f 8c 8c fd ff ff 48 8b RSP: 0018:ffffc9000d1fe500 EFLAGS: 00010287 RAX: ffffffff83b63284 RBX: 0000000000000000 RCX: 0000000000100000 RDX: ffffc9000f7db000 RSI: 0000000000001534 RDI: 0000000000001535 RBP: ffffc9000d1fe8d0 R08: ffffffff83b61abd R09: ffffffff83b616d6 R10: 0000000000000006 R11: ffff8880006f4880 R12: ffff88804000a780 R13: 1ffff92001a3fccc R14: 0000000000000000 R15: dffffc0000000000 FS: 00007fe4b5c0e6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d40181c0b8 CR3: 000000003415a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400