arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 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:154! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 1 UID: 0 PID: 21185 Comm: syz.3.4483 Not tainted 6.14.0-rc1-syzkaller-00081-gbb066fe812d6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:filemap_unaccount_folio+0x73d/0x7d0 mm/filemap.c:154 Code: de c7 ff 48 89 df 48 c7 c6 e0 d3 13 8c e8 8b f3 11 00 90 0f 0b e8 e3 de c7 ff 48 89 df 48 c7 c6 c0 d2 13 8c e8 74 f3 11 00 90 <0f> 0b e8 cc de c7 ff 48 89 df 48 c7 c6 e0 d3 13 8c e8 5d f3 11 00 RSP: 0018:ffffc90003eef070 EFLAGS: 00010046 RAX: 15b79a4c8de09300 RBX: ffffea000103a300 RCX: ffffc90003eeec03 RDX: 0000000000000002 RSI: ffffffff8c0ab8e0 RDI: ffffffff8c608a00 RBP: 0000000000000000 R08: ffffffff901b5277 R09: 1ffffffff2036a4e R10: dffffc0000000000 R11: fffffbfff2036a4f R12: dffffc0000000000 R13: 1ffffd4000207461 R14: ffff88806224e598 R15: ffffea000103a308 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000400000 CR3: 000000000e738000 CR4: 0000000000350ef0 Call Trace: __filemap_remove_folio+0xc7/0x670 mm/filemap.c:223 filemap_remove_folio+0xe1/0x1f0 mm/filemap.c:256 truncate_inode_folio+0x5d/0x70 mm/truncate.c:162 shmem_undo_range+0x44b/0x1820 mm/shmem.c:1108 shmem_truncate_range mm/shmem.c:1224 [inline] shmem_evict_inode+0x29b/0xa80 mm/shmem.c:1352 evict+0x4ea/0x9a0 fs/inode.c:796 __dentry_kill+0x20d/0x630 fs/dcache.c:643 dput+0x19f/0x2b0 fs/dcache.c:885 __fput+0x60b/0x9f0 fs/file_table.c:456 task_work_run+0x251/0x310 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa2a/0x28e0 kernel/exit.c:938 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 get_signal+0x16b2/0x1750 kernel/signal.c:3036 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6f3618cde9 Code: Unable to access opcode bytes at 0x7f6f3618cdbf. RSP: 002b:00007f6f36fb8038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: 0000000000010106 RBX: 00007f6f363a6080 RCX: 00007f6f3618cde9 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000008 RBP: 00007f6f3620e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f6f363a6080 R15: 00007ffd6d1f17a8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0x73d/0x7d0 mm/filemap.c:154 Code: de c7 ff 48 89 df 48 c7 c6 e0 d3 13 8c e8 8b f3 11 00 90 0f 0b e8 e3 de c7 ff 48 89 df 48 c7 c6 c0 d2 13 8c e8 74 f3 11 00 90 <0f> 0b e8 cc de c7 ff 48 89 df 48 c7 c6 e0 d3 13 8c e8 5d f3 11 00 RSP: 0018:ffffc90003eef070 EFLAGS: 00010046 RAX: 15b79a4c8de09300 RBX: ffffea000103a300 RCX: ffffc90003eeec03 RDX: 0000000000000002 RSI: ffffffff8c0ab8e0 RDI: ffffffff8c608a00 RBP: 0000000000000000 R08: ffffffff901b5277 R09: 1ffffffff2036a4e R10: dffffc0000000000 R11: fffffbfff2036a4f R12: dffffc0000000000 R13: 1ffffd4000207461 R14: ffff88806224e598 R15: ffffea000103a308 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000400000 CR3: 000000000e738000 CR4: 0000000000350ef0