page last free pid 7073 tgid 7073 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_folios+0xf12/0x19c0 mm/page_alloc.c:2637 folios_put_refs+0x93a/0xa60 mm/swap.c:1024 folio_batch_release include/linux/pagevec.h:101 [inline] invalidate_inode_pages2_range+0xdee/0x10d0 mm/truncate.c:670 btrfs_destroy_delalloc_inodes fs/btrfs/disk-io.c:4626 [inline] btrfs_destroy_all_delalloc_inodes fs/btrfs/disk-io.c:4649 [inline] btrfs_cleanup_transaction+0x119c/0x1ca0 fs/btrfs/disk-io.c:4883 transaction_kthread+0x307/0x500 fs/btrfs/disk-io.c:1612 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:1507! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 11 Comm: kworker/u8:0 Not tainted 6.10.0-syzkaller-09061-g4305ca0087dd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: btrfs-delalloc btrfs_work_helper RIP: 0010:folio_unlock+0x18b/0x2f0 mm/filemap.c:1507 Code: 4c 89 f0 48 25 ff 0f 00 00 74 62 e8 8f 64 c9 ff e9 eb fe ff ff e8 85 64 c9 ff 4c 89 f7 48 c7 c6 e0 ac d3 8b e8 96 c8 10 00 90 <0f> 0b e8 6e 64 c9 ff 4c 89 f7 48 c7 c6 e0 b5 d3 8b e8 7f c8 10 00 RSP: 0018:ffffc90000107628 EFLAGS: 00010246 RAX: ffe40d3952b17b00 RBX: 1ffffd40003072d8 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8bcac920 RDI: 0000000000000001 RBP: 00fff000000041a8 R08: ffffffff92fba71f R09: 1ffffffff25f74e3 R10: dffffc0000000000 R11: fffffbfff25f74e4 R12: ffffea00018396c8 R13: 1ffffd40003072d9 R14: ffffea00018396c0 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000556af62ca088 CR3: 000000000e134000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: submit_uncompressed_range+0x36b/0x400 fs/btrfs/inode.c:1147 submit_one_async_extent fs/btrfs/inode.c:1186 [inline] submit_compressed_extents+0x6af/0x1460 fs/btrfs/inode.c:1638 run_ordered_work fs/btrfs/async-thread.c:245 [inline] btrfs_work_helper+0x56b/0xc50 fs/btrfs/async-thread.c:324 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd40 kernel/workqueue.c:3390 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_unlock+0x18b/0x2f0 mm/filemap.c:1507 Code: 4c 89 f0 48 25 ff 0f 00 00 74 62 e8 8f 64 c9 ff e9 eb fe ff ff e8 85 64 c9 ff 4c 89 f7 48 c7 c6 e0 ac d3 8b e8 96 c8 10 00 90 <0f> 0b e8 6e 64 c9 ff 4c 89 f7 48 c7 c6 e0 b5 d3 8b e8 7f c8 10 00 RSP: 0018:ffffc90000107628 EFLAGS: 00010246 RAX: ffe40d3952b17b00 RBX: 1ffffd40003072d8 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8bcac920 RDI: 0000000000000001 RBP: 00fff000000041a8 R08: ffffffff92fba71f R09: 1ffffffff25f74e3 R10: dffffc0000000000 R11: fffffbfff25f74e4 R12: ffffea00018396c8 R13: 1ffffd40003072d9 R14: ffffea00018396c0 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb36364b440 CR3: 000000007de62000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400