__vm_munmap+0x142/0x330 mm/mmap.c:3017 __do_sys_munmap mm/mmap.c:3034 [inline] __se_sys_munmap mm/mmap.c:3031 [inline] __x64_sys_munmap+0x61/0x90 mm/mmap.c:3031 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 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 NOPTI CPU: 1 PID: 11 Comm: kworker/u32:0 Not tainted 6.9.0-syzkaller-09868-g6e51b4b5bbc0 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Workqueue: writeback wb_workfn (flush-btrfs-27) RIP: 0010:folio_unlock mm/filemap.c:1507 [inline] RIP: 0010:folio_unlock+0xb3/0xd0 mm/filemap.c:1502 Code: 33 d6 ce ff 48 89 ef 31 f6 e8 99 eb ff ff 5b 5d e9 22 d6 ce ff e8 1d d6 ce ff 48 c7 c6 60 8e 37 8b 48 89 ef e8 2e 4a 11 00 90 <0f> 0b 48 89 df e8 d3 bc 2a 00 e9 7b ff ff ff 66 66 2e 0f 1f 84 00 RSP: 0018:ffffc900000e71f0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888017e92440 RSI: ffffffff81bf1272 RDI: ffff888017e92884 RBP: ffffea000138d140 R08: 0000000000000001 R09: fffffbfff284be69 R10: ffffffff9425f34f R11: 0000000000000000 R12: ffff888031ee0600 R13: ffffea000138d140 R14: 00000000fffffffb R15: 00000000fffffffb FS: 0000000000000000(0000) GS:ffff88806b100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30346000 CR3: 000000001f0fa000 CR4: 0000000000350ef0 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+0x10fd/0x1ce0 fs/btrfs/extent_io.c:2173 btrfs_writepages+0x21b/0x4a0 fs/btrfs/extent_io.c:2294 do_writepages+0x1a3/0x7f0 mm/page-writeback.c:2634 __writeback_single_inode+0x163/0xf90 fs/fs-writeback.c:1651 writeback_sb_inodes+0x611/0x1150 fs/fs-writeback.c:1947 wb_writeback+0x199/0xb50 fs/fs-writeback.c:2127 wb_do_writeback fs/fs-writeback.c:2274 [inline] wb_workfn+0x28d/0xf40 fs/fs-writeback.c:2314 process_one_work+0x9fb/0x1b60 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/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 mm/filemap.c:1507 [inline] RIP: 0010:folio_unlock+0xb3/0xd0 mm/filemap.c:1502 Code: 33 d6 ce ff 48 89 ef 31 f6 e8 99 eb ff ff 5b 5d e9 22 d6 ce ff e8 1d d6 ce ff 48 c7 c6 60 8e 37 8b 48 89 ef e8 2e 4a 11 00 90 <0f> 0b 48 89 df e8 d3 bc 2a 00 e9 7b ff ff ff 66 66 2e 0f 1f 84 00 RSP: 0018:ffffc900000e71f0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888017e92440 RSI: ffffffff81bf1272 RDI: ffff888017e92884 RBP: ffffea000138d140 R08: 0000000000000001 R09: fffffbfff284be69 R10: ffffffff9425f34f R11: 0000000000000000 R12: ffff888031ee0600 R13: ffffea000138d140 R14: 00000000fffffffb R15: 00000000fffffffb FS: 0000000000000000(0000) GS:ffff88806b000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30347000 CR3: 0000000025d1a000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400