raw: 05ffc0000000402c fffffdffc391e248 ffff0000cdf36c20 ffff0000ef9cf0e0 raw: 0000000000000000 0000000000000001 00000003ffffffff ffff0000eff72000 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: 8790 Comm: syz.2.353 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 : ffff8000a0116cc0 x29: ffff8000a0116cc0 x28: 00000000000001e6 x27: fffffdffc3fb8f88 x26: dfff800000000000 x25: ffff0000ef9ceeb8 x24: fffffdffc3fb8f80 x23: 05ffc0000000402c x22: 1fffffbff87f71f1 x21: dfff800000000000 x20: fffffdffc3fb8f88 x19: fffffdffc3fb8f80 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008b07c030 x15: ffff700011e6a694 x14: 1ffff00011e6a694 x13: 0000000000000004 x12: ffffffffffffffff x11: 0000000000000001 x10: 0000000000ff0100 x9 : b9e40aff3c76a600 x8 : b9e40aff3c76a600 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a01161d8 x4 : ffff80008f3c53a0 x3 : ffff800080369018 x2 : 0000000000000000 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_range+0x10c/0x174 mm/filemap.c:448 btrfs_fdatawrite_range fs/btrfs/file.c:4066 [inline] start_ordered_ops fs/btrfs/file.c:1753 [inline] btrfs_sync_file+0x26c/0xecc fs/btrfs/file.c:1828 vfs_fsync_range+0x168/0x188 fs/sync.c:188 generic_write_sync include/linux/fs.h:2794 [inline] btrfs_do_write_iter+0x8d8/0xcec fs/btrfs/file.c:1705 btrfs_file_write_iter+0x2c/0x3c fs/btrfs/file.c:1715 do_iter_readv_writev+0x438/0x658 vfs_writev+0x410/0xb80 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_sys_pwritev2 fs/read_write.c:1131 [inline] __se_sys_pwritev2 fs/read_write.c:1122 [inline] __arm64_sys_pwritev2+0x1dc/0x2f0 fs/read_write.c:1122 __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 ]---