__dentry_kill+0x20d/0x630 fs/dcache.c:603 dput+0x19f/0x2b0 fs/dcache.c:845 __fput+0x68c/0x8b0 fs/file_table.c:430 task_work_run+0x251/0x310 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x168/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 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: 7906 Comm: syz-executor.4 Not tainted 6.10.0-rc3-syzkaller-00044-g2ccbdf43d5e7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:folio_unlock+0x18b/0x2f0 mm/filemap.c:1507 Code: 4c 89 f0 48 25 ff 0f 00 00 74 62 e8 ef d3 c9 ff e9 eb fe ff ff e8 e5 d3 c9 ff 4c 89 f7 48 c7 c6 e0 8e d3 8b e8 96 9b 13 00 90 <0f> 0b e8 ce d3 c9 ff 4c 89 f7 48 c7 c6 e0 97 d3 8b e8 7f 9b 13 00 RSP: 0018:ffffc90009db7328 EFLAGS: 00010246 RAX: a928e0988e359d00 RBX: 1ffffd400036ee70 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8bcabb80 RDI: 0000000000000001 RBP: 00fff4000000402c R08: ffffffff92fab6bf R09: 1ffffffff25f56d7 R10: dffffc0000000000 R11: fffffbfff25f56d8 R12: ffffea0001b77388 R13: 1ffffd400036ee71 R14: ffffea0001b77380 R15: dffffc0000000000 FS: 00007fe993e6e6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7e0f5a7fa8 CR3: 000000007b4a4000 CR4: 0000000000350ef0 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+0x35b/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+0xa74/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:0x7fe99307cea9 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:00007fe993e6e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe9931b41f0 RCX: 00007fe99307cea9 RDX: 0000000000000090 RSI: 0000000020000140 RDI: 000000000000000c RBP: 00007fe9930ebff4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fe9931b41f0 R15: 00007ffde4d1bfd8 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 ef d3 c9 ff e9 eb fe ff ff e8 e5 d3 c9 ff 4c 89 f7 48 c7 c6 e0 8e d3 8b e8 96 9b 13 00 90 <0f> 0b e8 ce d3 c9 ff 4c 89 f7 48 c7 c6 e0 97 d3 8b e8 7f 9b 13 00 RSP: 0018:ffffc90009db7328 EFLAGS: 00010246 RAX: a928e0988e359d00 RBX: 1ffffd400036ee70 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8bcabb80 RDI: 0000000000000001 RBP: 00fff4000000402c R08: ffffffff92fab6bf R09: 1ffffffff25f56d7 R10: dffffc0000000000 R11: fffffbfff25f56d8 R12: ffffea0001b77388 R13: 1ffffd400036ee71 R14: ffffea0001b77380 R15: dffffc0000000000 FS: 00007fe993e6e6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7e0f5a7fa8 CR3: 000000007b4a4000 CR4: 0000000000350ef0