__mmput+0x115/0x3c0 kernel/fork.c:1346 exit_mm+0x220/0x310 kernel/exit.c:565 do_exit+0x9aa/0x27e0 kernel/exit.c:861 do_group_exit+0x207/0x2c0 kernel/exit.c:1023 __do_sys_exit_group kernel/exit.c:1034 [inline] __se_sys_exit_group kernel/exit.c:1032 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1032 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 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:1507! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 129 Comm: kworker/u8:5 Not tainted 6.10.0-rc6-syzkaller-00048-g73e931504f8e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Workqueue: writeback wb_workfn (flush-btrfs-50) RIP: 0010:folio_unlock+0x18b/0x2f0 mm/filemap.c:1507 Code: 4c 89 f0 48 25 ff 0f 00 00 74 62 e8 4f d8 c9 ff e9 eb fe ff ff e8 45 d8 c9 ff 4c 89 f7 48 c7 c6 60 8c d3 8b e8 66 c2 10 00 90 <0f> 0b e8 2e d8 c9 ff 4c 89 f7 48 c7 c6 60 95 d3 8b e8 4f c2 10 00 RSP: 0018:ffffc90002df6d88 EFLAGS: 00010246 RAX: 30d74103c0892000 RBX: 1ffffd4000316b30 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8bcabb40 RDI: 0000000000000001 RBP: 00fff0000000402c R08: ffffffff92f71637 R09: 1ffffffff25ee2c6 R10: dffffc0000000000 R11: fffffbfff25ee2c7 R12: ffffea00018b5988 R13: 1ffffd4000316b31 R14: ffffea00018b5980 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055557daea808 CR3: 000000002f8d0000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __extent_writepage fs/btrfs/extent_io.c:1519 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2173 [inline] btrfs_writepages+0x1fab/0x26f0 fs/btrfs/extent_io.c:2294 do_writepages+0x359/0x870 mm/page-writeback.c:2634 __writeback_single_inode+0x165/0x10b0 fs/fs-writeback.c:1651 writeback_sb_inodes+0x99c/0x1380 fs/fs-writeback.c:1947 wb_writeback+0x481/0xd40 fs/fs-writeback.c:2127 wb_do_writeback fs/fs-writeback.c:2274 [inline] wb_workfn+0x410/0x1090 fs/fs-writeback.c:2314 process_one_work kernel/workqueue.c:3248 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3329 worker_thread+0x86d/0xd50 kernel/workqueue.c:3409 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 4f d8 c9 ff e9 eb fe ff ff e8 45 d8 c9 ff 4c 89 f7 48 c7 c6 60 8c d3 8b e8 66 c2 10 00 90 <0f> 0b e8 2e d8 c9 ff 4c 89 f7 48 c7 c6 60 95 d3 8b e8 4f c2 10 00