__mmput+0x122/0x4b0 kernel/fork.c:1183 mmput+0x56/0x60 kernel/fork.c:1205 exit_mm kernel/exit.c:510 [inline] do_exit+0xa12/0x2a00 kernel/exit.c:782 __do_sys_exit kernel/exit.c:892 [inline] __se_sys_exit kernel/exit.c:890 [inline] __x64_sys_exit+0x3e/0x50 kernel/exit.c:890 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 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:1971! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 18602 Comm: syz-executor.1 Not tainted 5.18.0-rc3-syzkaller-00007-g559089e0a93d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__filemap_get_folio+0xc65/0xf00 mm/filemap.c:1971 Code: db 45 31 f6 e9 fd f5 ff ff 44 8b 6c 24 10 48 89 eb e9 f0 f5 ff ff e8 ba f5 d8 ff 48 c7 c6 80 d9 d5 89 48 89 df e8 6b 8d 0e 00 <0f> 0b e8 a4 f5 d8 ff 48 89 df 31 db e8 4a af 03 00 e9 78 f7 ff ff RSP: 0018:ffffc9000417f8b0 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffffea0001158d00 RCX: ffffc90003d6a000 RDX: 0000000000040000 RSI: ffffffff819f5865 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000029 R09: 00000000ffffffff R10: ffffffff891d5eec R11: 00000000ffffffff R12: 0000000000000140 R13: 0000000000000182 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f0001085700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d133000 CR3: 000000006ff1d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pagecache_get_page+0x2e/0x290 mm/folio-compat.c:126 shmem_getpage_gfp+0x471/0x2370 mm/shmem.c:1812 shmem_getpage mm/shmem.c:149 [inline] shmem_write_begin+0xff/0x1e0 mm/shmem.c:2446 generic_perform_write+0x249/0x560 mm/filemap.c:3787 __generic_file_write_iter+0x2aa/0x4d0 mm/filemap.c:3915 generic_file_write_iter+0xd7/0x220 mm/filemap.c:3947 call_write_iter include/linux/fs.h:2050 [inline] new_sync_write+0x38a/0x560 fs/read_write.c:504 vfs_write+0x7c0/0xac0 fs/read_write.c:591 ksys_write+0x127/0x250 fs/read_write.c:644 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:0x7effffe890e9 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0001085168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007efffff9bf60 RCX: 00007effffe890e9 RDX: 000000000208e24b RSI: 0000000020000080 RDI: 0000000000000004 RBP: 00007effffee308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd1bd299af R14: 00007f0001085300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_get_folio+0xc65/0xf00 mm/filemap.c:1971 Code: db 45 31 f6 e9 fd f5 ff ff 44 8b 6c 24 10 48 89 eb e9 f0 f5 ff ff e8 ba f5 d8 ff 48 c7 c6 80 d9 d5 89 48 89 df e8 6b 8d 0e 00 <0f> 0b e8 a4 f5 d8 ff 48 89 df 31 db e8 4a af 03 00 e9 78 f7 ff ff RSP: 0018:ffffc9000417f8b0 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffffea0001158d00 RCX: ffffc90003d6a000 RDX: 0000000000040000 RSI: ffffffff819f5865 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000029 R09: 00000000ffffffff R10: ffffffff891d5eec R11: 00000000ffffffff R12: 0000000000000140 R13: 0000000000000182 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f0001085700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d133000 CR3: 000000006ff1d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400