get_signal+0x4b0/0x28c0 kernel/signal.c:2862 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:868 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:1891! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 3487 Comm: syz-executor.3 Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__filemap_get_folio+0xb8b/0xe10 mm/filemap.c:1891 Code: db 45 31 f6 e9 d1 f6 ff ff 44 8b 6c 24 10 48 89 eb e9 c4 f6 ff ff e8 c4 6b d9 ff 48 c7 c6 80 a6 b5 89 48 89 df e8 d5 02 0d 00 <0f> 0b e8 ae 6b d9 ff 48 89 df 31 db e8 f4 01 03 00 e9 4c f8 ff ff RSP: 0018:ffffc90004a7f8b8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffea0002320500 RCX: 0000000000000000 RDX: ffff888077961d00 RSI: ffffffff819ee52b RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000024 R09: 00000000ffffffff R10: ffffffff890a1497 R11: 00000000ffffffff R12: 0000000000000100 R13: 0000000000000182 R14: 0000000000000001 R15: dffffc0000000000 FS: 00007ff4ef91d700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6c27f611b8 CR3: 0000000078496000 CR4: 0000000000350ef0 Call Trace: pagecache_get_page+0x2c/0x1a0 mm/folio-compat.c:125 shmem_getpage_gfp+0x4f7/0x22d0 mm/shmem.c:1823 shmem_getpage mm/shmem.c:150 [inline] shmem_write_begin+0xff/0x1e0 mm/shmem.c:2457 generic_perform_write+0x205/0x510 mm/filemap.c:3687 __generic_file_write_iter+0x1c7/0x510 mm/filemap.c:3814 generic_file_write_iter+0xd7/0x220 mm/filemap.c:3846 call_write_iter include/linux/fs.h:2086 [inline] new_sync_write+0x431/0x660 fs/read_write.c:503 vfs_write+0x7cd/0xae0 fs/read_write.c:590 ksys_write+0x12d/0x250 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7ff4f0fa7fe9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff4ef91d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ff4f10baf60 RCX: 00007ff4f0fa7fe9 RDX: 000000000208e24b RSI: 0000000020000000 RDI: 0000000000000013 RBP: 00007ff4f100208d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffeb7b5d49f R14: 00007ff4ef91d300 R15: 0000000000022000 Modules linked in: ---[ end trace 824fec2929898fe4 ]--- RIP: 0010:__filemap_get_folio+0xb8b/0xe10 mm/filemap.c:1891 Code: db 45 31 f6 e9 d1 f6 ff ff 44 8b 6c 24 10 48 89 eb e9 c4 f6 ff ff e8 c4 6b d9 ff 48 c7 c6 80 a6 b5 89 48 89 df e8 d5 02 0d 00 <0f> 0b e8 ae 6b d9 ff 48 89 df 31 db e8 f4 01 03 00 e9 4c f8 ff ff RSP: 0018:ffffc90004a7f8b8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffea0002320500 RCX: 0000000000000000 RDX: ffff888077961d00 RSI: ffffffff819ee52b RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000024 R09: 00000000ffffffff R10: ffffffff890a1497 R11: 00000000ffffffff R12: 0000000000000100 R13: 0000000000000182 R14: 0000000000000001 R15: dffffc0000000000 FS: 00007ff4ef91d700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcf7a376998 CR3: 0000000078496000 CR4: 0000000000350ee0