arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [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+0xc9/0x360 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: 10119 Comm: syz.4.924 Not tainted 6.10.0-rc6-syzkaller-00210-gd270dd21bee0 #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 5f d8 c9 ff e9 eb fe ff ff e8 55 d8 c9 ff 4c 89 f7 48 c7 c6 a0 8c d3 8b e8 06 9c 13 00 90 <0f> 0b e8 3e d8 c9 ff 4c 89 f7 48 c7 c6 a0 95 d3 8b e8 ef 9b 13 00 RSP: 0018:ffffc9000bf97328 EFLAGS: 00010246 RAX: 47ebf42c3e8a3800 RBX: 1ffffd40002f54f0 RCX: ffffc9000bf96f03 RDX: 0000000000000003 RSI: ffffffff8bcaccc0 RDI: ffffffff8c1fe9c0 RBP: 00fff4000000422c R08: ffffffff8fad496f R09: 1ffffffff1f5a92d R10: dffffc0000000000 R11: fffffbfff1f5a92e R12: ffffea00017aa788 R13: 1ffffd40002f54f1 R14: ffffea00017aa780 R15: dffffc0000000000 FS: 00007fd237da66c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e3bbdf3b18 CR3: 000000006807a000 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:2656 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+0x4f/0x110 fs/btrfs/file.c:4066 btrfs_wait_ordered_range+0x59/0x260 fs/btrfs/ordered-data.c:863 btrfs_fallocate+0xba8/0x2060 fs/btrfs/file.c:3312 vfs_fallocate+0x566/0x6c0 fs/open.c:330 ksys_fallocate fs/open.c:353 [inline] __do_sys_fallocate fs/open.c:361 [inline] __se_sys_fallocate fs/open.c:359 [inline] __x64_sys_fallocate+0xbd/0x110 fs/open.c:359 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:0x7fd236f75bd9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd237da6048 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fd237104038 RCX: 00007fd236f75bd9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007fd236fe4aa1 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000040000d8 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fd237104038 R15: 00007fff435c49c8 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 d8 c9 ff e9 eb fe ff ff e8 55 d8 c9 ff 4c 89 f7 48 c7 c6 a0 8c d3 8b e8 06 9c 13 00 90 <0f> 0b e8 3e d8 c9 ff 4c 89 f7 48 c7 c6 a0 95 d3 8b e8 ef 9b 13 00 RSP: 0018:ffffc9000bf97328 EFLAGS: 00010246 RAX: 47ebf42c3e8a3800 RBX: 1ffffd40002f54f0 RCX: ffffc9000bf96f03 RDX: 0000000000000003 RSI: ffffffff8bcaccc0 RDI: ffffffff8c1fe9c0 RBP: 00fff4000000422c R08: ffffffff8fad496f R09: 1ffffffff1f5a92d R10: dffffc0000000000 R11: fffffbfff1f5a92e R12: ffffea00017aa788 R13: 1ffffd40002f54f1 R14: ffffea00017aa780 R15: dffffc0000000000 FS: 00007fd237da66c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e3bbdf3b18 CR3: 000000006807a000 CR4: 0000000000350ef0