__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: 0 PID: 5492 Comm: syz-executor.0 Not tainted 6.10.0-rc2-syzkaller-00315-gdc772f8237f9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:folio_unlock+0x18b/0x2f0 mm/filemap.c:1507 Code: 4c 89 f0 48 25 ff 0f 00 00 74 62 e8 5f d4 c9 ff e9 eb fe ff ff e8 55 d4 c9 ff 4c 89 f7 48 c7 c6 e0 8e d3 8b e8 b6 c1 10 00 90 <0f> 0b e8 3e d4 c9 ff 4c 89 f7 48 c7 c6 e0 97 d3 8b e8 9f c1 10 00 RSP: 0018:ffffc90004b3f328 EFLAGS: 00010246 RAX: 574b0b8273ee2700 RBX: 1ffffd40003baaf0 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8bcabb80 RDI: 0000000000000001 RBP: 00fff0000000402c R08: ffffffff92f7468f R09: 1ffffffff25ee8d1 R10: dffffc0000000000 R11: fffffbfff25ee8d2 R12: ffffea0001dd5788 R13: 1ffffd40003baaf1 R14: ffffea0001dd5780 R15: dffffc0000000000 FS: 00007f68723896c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd512d00c8 CR3: 000000002da44000 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 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:397 __filemap_fdatawrite_range mm/filemap.c:430 [inline] filemap_fdatawrite_range+0x120/0x180 mm/filemap.c:448 btrfs_fdatawrite_range fs/btrfs/file.c:4066 [inline] btrfs_direct_write fs/btrfs/file.c:1628 [inline] btrfs_do_write_iter+0xd73/0x10a0 fs/btrfs/file.c:1695 new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa72/0xc90 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 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 RIP: 0033:0x7f687167c859 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f68723890c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f687179c050 RCX: 00007f687167c859 RDX: 0000000000000020 RSI: 0000000020000180 RDI: 0000000000000004 RBP: 00007f6872389120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000006e R14: 00007f687179c050 R15: 00007fffca504138 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 5f d4 c9 ff e9 eb fe ff ff e8 55 d4 c9 ff 4c 89 f7 48 c7 c6 e0 8e d3 8b e8 b6 c1 10 00 90 <0f> 0b e8 3e d4 c9 ff 4c 89 f7 48 c7 c6 e0 97 d3 8b e8 9f c1 10 00 RSP: 0018:ffffc90004b3f328 EFLAGS: 00010246 RAX: 574b0b8273ee2700 RBX: 1ffffd40003baaf0 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8bcabb80 RDI: 0000000000000001 RBP: 00fff0000000402c R08: ffffffff92f7468f R09: 1ffffffff25ee8d1 R10: dffffc0000000000 R11: fffffbfff25ee8d2 R12: ffffea0001dd5788 R13: 1ffffd40003baaf1 R14: ffffea0001dd5780 R15: dffffc0000000000 FS: 00007f68723896c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8e7bcae5e8 CR3: 000000002da44000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400