------------[ cut here ]------------ kernel BUG at include/linux/swapops.h:258! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 22171 Comm: syz-executor.4 Not tainted 5.17.0-rc6-next-20220303-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:pfn_swap_entry_to_page include/linux/swapops.h:258 [inline] RIP: 0010:migration_entry_wait_on_locked+0x7ea/0xca0 mm/filemap.c:1413 Code: 48 c1 ea 03 80 3c 02 00 0f 85 6d 04 00 00 48 8b 1b 31 ff 83 e3 01 89 de e8 b3 4d d8 ff 84 db 0f 85 0e f9 ff ff e8 c6 49 d8 ff <0f> 0b e8 bf 49 d8 ff 48 83 eb 01 48 89 dd 49 89 df e9 46 f9 ff ff RSP: 0018:ffffc90006b47650 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc900153f4000 RDX: 0000000000040000 RSI: ffffffff81a0dcca RDI: 0000000000000003 RBP: ffffea0002d38000 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff81a0dcbd R11: 0000000000000000 R12: ffffea0002d38008 R13: ffffea0002d38000 R14: 000000000000001b R15: 0000000000000000 FS: 00007f7deb40f700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002046a000 CR3: 000000004d991000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 00000000e08e0077 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: pmd_migration_entry_wait+0x214/0x2c0 mm/migrate.c:327 __handle_mm_fault+0x1a0e/0x4150 mm/memory.c:4741 handle_mm_fault+0x1c8/0x790 mm/memory.c:4857 do_user_addr_fault+0x489/0x11c0 arch/x86/mm/fault.c:1397 handle_page_fault arch/x86/mm/fault.c:1484 [inline] exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1540 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0010:fault_in_readable+0x106/0x290 mm/gup.c:1726 Code: ff 0f 01 cb 0f ae e8 48 89 eb 31 ff 81 e3 ff 0f 00 00 48 89 de e8 8a f0 c9 ff 48 85 db 0f 84 ea 00 00 00 e8 ec ed c9 ff 31 db <8a> 45 00 31 ff 89 de 88 44 24 28 e8 fa ef c9 ff 85 db 0f 85 4f 01 RSP: 0018:ffffc90006b47ac0 EFLAGS: 00050246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc900153f4000 RDX: 0000000000040000 RSI: ffffffff81af38a4 RDI: 0000000000000003 RBP: 0000000020393040 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff81af3896 R11: 0000000000000000 R12: 0000000000001000 R13: dffffc0000000000 R14: dffffc0000000000 R15: 1ffff92000d68f59 fault_in_iov_iter_readable lib/iov_iter.c:458 [inline] fault_in_iov_iter_readable+0x11f/0x1f0 lib/iov_iter.c:444 generic_perform_write+0x15b/0x510 mm/filemap.c:3779 __generic_file_write_iter+0x1c7/0x510 mm/filemap.c:3916 generic_file_write_iter+0xd7/0x220 mm/filemap.c:3948 call_write_iter include/linux/fs.h:2082 [inline] new_sync_write+0x431/0x660 fs/read_write.c:504 vfs_write+0x7c9/0xad0 fs/read_write.c:591 ksys_write+0x12d/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:0x7f7dea289049 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:00007f7deb40f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7dea39bf60 RCX: 00007f7dea289049 RDX: 000000000208e24b RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007f7dea2e308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffda08acd2f R14: 00007f7deb40f300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:pfn_swap_entry_to_page include/linux/swapops.h:258 [inline] RIP: 0010:migration_entry_wait_on_locked+0x7ea/0xca0 mm/filemap.c:1413 Code: 48 c1 ea 03 80 3c 02 00 0f 85 6d 04 00 00 48 8b 1b 31 ff 83 e3 01 89 de e8 b3 4d d8 ff 84 db 0f 85 0e f9 ff ff e8 c6 49 d8 ff <0f> 0b e8 bf 49 d8 ff 48 83 eb 01 48 89 dd 49 89 df e9 46 f9 ff ff RSP: 0018:ffffc90006b47650 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc900153f4000 RDX: 0000000000040000 RSI: ffffffff81a0dcca RDI: 0000000000000003 RBP: ffffea0002d38000 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff81a0dcbd R11: 0000000000000000 R12: ffffea0002d38008 R13: ffffea0002d38000 R14: 000000000000001b R15: 0000000000000000 FS: 00007f7deb40f700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002046a000 CR3: 000000004d991000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 00000000e08e0077 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: ff 0f decl (%rdi) 2: 01 cb add %ecx,%ebx 4: 0f ae e8 lfence 7: 48 89 eb mov %rbp,%rbx a: 31 ff xor %edi,%edi c: 81 e3 ff 0f 00 00 and $0xfff,%ebx 12: 48 89 de mov %rbx,%rsi 15: e8 8a f0 c9 ff callq 0xffc9f0a4 1a: 48 85 db test %rbx,%rbx 1d: 0f 84 ea 00 00 00 je 0x10d 23: e8 ec ed c9 ff callq 0xffc9ee14 28: 31 db xor %ebx,%ebx * 2a: 8a 45 00 mov 0x0(%rbp),%al <-- trapping instruction 2d: 31 ff xor %edi,%edi 2f: 89 de mov %ebx,%esi 31: 88 44 24 28 mov %al,0x28(%rsp) 35: e8 fa ef c9 ff callq 0xffc9f034 3a: 85 db test %ebx,%ebx 3c: 0f .byte 0xf 3d: 85 4f 01 test %ecx,0x1(%rdi)