arch_do_signal_or_restart+0x90/0x7e0 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+0x14a/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xdc/0x260 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:162! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 10525 Comm: syz-executor.2 Not tainted 6.9.0-rc6-syzkaller-00046-g18daea77cca6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:filemap_unaccount_folio+0x5ab/0x7f0 mm/filemap.c:162 Code: 04 84 d2 75 4b 8b 6b 5c 31 ff 89 ee e8 8e 4a cf ff 85 ed 7e 45 e8 a5 4f cf ff 48 c7 c6 c0 7f 17 8b 48 89 df e8 46 18 11 00 90 <0f> 0b 48 89 ef e8 8b 94 2a 00 e9 28 fb ff ff 48 89 ef e8 7e 94 2a RSP: 0018:ffffc900035df708 EFLAGS: 00010093 RAX: 0000000000000000 RBX: ffffea000170e540 RCX: ffffc900035df5b0 RDX: ffff88802d538000 RSI: ffffffff81be769a RDI: ffffffff8b6f55a0 RBP: ffffea000170e570 R08: 0000000000000000 R09: fffffbfff1f3e922 R10: ffffffff8f9f4917 R11: 0000000000000001 R12: ffff888024c18a38 R13: 0000000000000000 R14: 000000000003d78c R15: ffffea000170e558 FS: 000055558f673480(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b33b24000 CR3: 0000000051be6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __filemap_remove_folio+0x115/0x760 mm/filemap.c:231 filemap_remove_folio+0xc8/0x210 mm/filemap.c:264 truncate_inode_folio+0x49/0x70 mm/truncate.c:195 shmem_undo_range+0x378/0x1170 mm/shmem.c:1001 shmem_truncate_range mm/shmem.c:1114 [inline] shmem_evict_inode+0x3a3/0xbb0 mm/shmem.c:1242 evict+0x2ed/0x6c0 fs/inode.c:667 iput_final fs/inode.c:1741 [inline] iput.part.0+0x5a8/0x7f0 fs/inode.c:1767 iput+0x5c/0x80 fs/inode.c:1757 dentry_unlink_inode+0x295/0x440 fs/dcache.c:400 __dentry_kill+0x1d0/0x600 fs/dcache.c:603 dput.part.0+0x4b1/0x9b0 fs/dcache.c:845 dput+0x1f/0x30 fs/dcache.c:835 __fput+0x3bc/0xb80 fs/file_table.c:430 __fput_sync+0x47/0x50 fs/file_table.c:507 __do_sys_close fs/open.c:1556 [inline] __se_sys_close fs/open.c:1541 [inline] __x64_sys_close+0x86/0x100 fs/open.c:1541 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 RIP: 0033:0x7f3f86c7cd9a Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24 RSP: 002b:00007ffc5a992a50 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f3f86c7cd9a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f3f86dad980 R08: 00007f3f86c00000 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000293 R12: 000000000007a47b R13: 000000000007a449 R14: 00007ffc5a992c10 R15: 00007f3f86c34cb0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0x5ab/0x7f0 mm/filemap.c:162 Code: 04 84 d2 75 4b 8b 6b 5c 31 ff 89 ee e8 8e 4a cf ff 85 ed 7e 45 e8 a5 4f cf ff 48 c7 c6 c0 7f 17 8b 48 89 df e8 46 18 11 00 90 <0f> 0b 48 89 ef e8 8b 94 2a 00 e9 28 fb ff ff 48 89 ef e8 7e 94 2a RSP: 0018:ffffc900035df708 EFLAGS: 00010093 RAX: 0000000000000000 RBX: ffffea000170e540 RCX: ffffc900035df5b0 RDX: ffff88802d538000 RSI: ffffffff81be769a RDI: ffffffff8b6f55a0 RBP: ffffea000170e570 R08: 0000000000000000 R09: fffffbfff1f3e922 R10: ffffffff8f9f4917 R11: 0000000000000001 R12: ffff888024c18a38 R13: 0000000000000000 R14: 000000000003d78c R15: ffffea000170e558 FS: 000055558f673480(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b33b24000 CR3: 0000000051be6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400