raw: 05ffc0000000402c fffffdffc3678548 ffff0000cdab9420 ffff0000eedebb70 raw: 0000000000000000 0000000000000001 0000000400000000 ffff0000dc428000 page dumped because: VM_BUG_ON_FOLIO(!folio_test_locked(folio)) ------------[ cut here ]------------ kernel BUG at mm/filemap.c:1507! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 7245 Comm: syz.0.142 Not tainted 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : folio_unlock+0x128/0x164 mm/filemap.c:1507 lr : folio_unlock+0x128/0x164 mm/filemap.c:1507 sp : ffff80009fbb6de0 x29: ffff80009fbb6de0 x28: 0000000000000118 x27: fffffdffc3c797c8 x26: dfff800000000000 x25: ffff0000eedeb948 x24: fffffdffc3c797c0 x23: 05ffc0000000402c x22: 1fffffbff878f2f9 x21: dfff800000000000 x20: fffffdffc3c797c8 x19: fffffdffc3c797c0 x18: ffff80009fbb6120 x17: 000000000002e238 x16: ffff800082f95f34 x15: 0000000000000001 x14: 1fffe000367a864a x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000001 x10: 0000000000ff0100 x9 : 0139f48e704eb900 x8 : 0139f48e704eb900 x7 : ffff80008005dba0 x6 : ffff80008005dd9c x5 : ffff0000cd3a8490 x4 : ffff80009fbb6270 x3 : ffff8000805e5ef0 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000003f Call trace: folio_unlock+0x128/0x164 mm/filemap.c:1507 unlock_page+0x58/0x74 mm/folio-compat.c:21 __extent_writepage fs/btrfs/extent_io.c:1519 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2173 [inline] btrfs_writepages+0x1870/0x1fc8 fs/btrfs/extent_io.c:2294 do_writepages+0x2f8/0x7c4 mm/page-writeback.c:2656 filemap_fdatawrite_wbc+0x124/0x174 mm/filemap.c:397 __filemap_fdatawrite_range mm/filemap.c:430 [inline] __filemap_fdatawrite mm/filemap.c:436 [inline] filemap_flush+0xd0/0x11c mm/filemap.c:463 btrfs_remap_file_range_prep fs/btrfs/reflink.c:834 [inline] btrfs_remap_file_range+0x3e4/0xe64 fs/btrfs/reflink.c:880 vfs_clone_file_range+0x534/0xb20 fs/remap_range.c:403 ioctl_file_clone fs/ioctl.c:240 [inline] ioctl_file_clone_range fs/ioctl.c:259 [inline] do_vfs_ioctl+0xe3c/0x2404 fs/ioctl.c:854 __do_sys_ioctl fs/ioctl.c:905 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __arm64_sys_ioctl+0xe4/0x1c8 fs/ioctl.c:893 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:131 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:150 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: 90055a21 913b8021 aa1303e0 94035ef1 (d4210000) ---[ end trace 0000000000000000 ]---