get_signal+0x16a1/0x1740 kernel/signal.c:2911 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/0x370 kernel/entry/common.c:218 __do_fast_syscall_32+0xc8/0x120 arch/x86/entry/common.c:389 do_fast_syscall_32+0x34/0x80 arch/x86/entry/common.c:411 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:162! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 5488 Comm: syz-executor.1 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+0x70d/0xc60 mm/filemap.c:162 Code: 25 ff 0f 00 00 0f 84 f0 00 00 00 e8 ad fc ca ff e9 6c f9 ff ff e8 a3 fc ca ff 4c 89 ef 48 c7 c6 e0 84 d3 8b e8 c4 35 14 00 90 <0f> 0b e8 8c fc ca ff 4c 89 ef 48 c7 c6 80 85 d3 8b e8 ad 35 14 00 RSP: 0018:ffffc9000356f618 EFLAGS: 00010046 RAX: 54dbd74a8925c500 RBX: 0000000000000000 RCX: ffffc9000356f203 RDX: 0000000000000002 RSI: ffffffff8bcaca20 RDI: ffffffff8c1f7ee0 RBP: 0000000000000000 R08: ffffffff8fa8f96f R09: 1ffffffff1f51f2d R10: dffffc0000000000 R11: fffffbfff1f51f2e R12: 1ffffd40002ffe18 R13: ffffea00017ff0c0 R14: 1ffffd40002ffe19 R15: ffffea00017ff0c8 FS: 0000000000000000(0000) GS:ffff8880b9500000(0063) knlGS:0000000057594400 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000031e22000 CR3: 000000002dfc2000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __filemap_remove_folio+0xc4/0x9e0 mm/filemap.c:231 filemap_remove_folio+0x109/0x2e0 mm/filemap.c:264 truncate_inode_folio+0x5d/0x70 mm/truncate.c:195 shmem_undo_range+0x45d/0x1df0 mm/shmem.c:1001 shmem_truncate_range mm/shmem.c:1114 [inline] shmem_evict_inode+0x29b/0xa60 mm/shmem.c:1242 evict+0x2a8/0x630 fs/inode.c:667 __dentry_kill+0x20d/0x630 fs/dcache.c:603 dput+0x19f/0x2b0 fs/dcache.c:845 __fput+0x678/0x8a0 fs/file_table.c:430 __do_sys_close fs/open.c:1556 [inline] __se_sys_close fs/open.c:1541 [inline] __ia32_sys_close+0x7f/0x110 fs/open.c:1541 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0xb8/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x34/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7292579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f7533af0 EFLAGS: 00000206 ORIG_RAX: 0000000000000006 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000057594400 RDX: 0000000000000000 RSI: 00000000f73e9ff4 RDI: 00000000ffffffff RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:filemap_unaccount_folio+0x70d/0xc60 mm/filemap.c:162 Code: 25 ff 0f 00 00 0f 84 f0 00 00 00 e8 ad fc ca ff e9 6c f9 ff ff e8 a3 fc ca ff 4c 89 ef 48 c7 c6 e0 84 d3 8b e8 c4 35 14 00 90 <0f> 0b e8 8c fc ca ff 4c 89 ef 48 c7 c6 80 85 d3 8b e8 ad 35 14 00 RSP: 0018:ffffc9000356f618 EFLAGS: 00010046 RAX: 54dbd74a8925c500 RBX: 0000000000000000 RCX: ffffc9000356f203 RDX: 0000000000000002 RSI: ffffffff8bcaca20 RDI: ffffffff8c1f7ee0 RBP: 0000000000000000 R08: ffffffff8fa8f96f R09: 1ffffffff1f51f2d R10: dffffc0000000000 R11: fffffbfff1f51f2e R12: 1ffffd40002ffe18 R13: ffffea00017ff0c0 R14: 1ffffd40002ffe19 R15: ffffea00017ff0c8 FS: 0000000000000000(0000) GS:ffff8880b9500000(0063) knlGS:0000000057594400 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000031e22000 CR3: 000000002dfc2000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 ret 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 90 nop 31: 90 nop 32: 90 nop 33: 90 nop 34: 90 nop 35: 90 nop 36: 90 nop 37: 90 nop 38: 90 nop 39: 90 nop 3a: 90 nop 3b: 90 nop 3c: 90 nop 3d: 90 nop