------------[ cut here ]------------ kernel BUG at include/linux/swapops.h:258! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 29106 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:ffffc9000310f9b0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880405457c0 RSI: ffffffff81a0dcca RDI: 0000000000000003 RBP: ffffea0002080000 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff81a0dcbd R11: 0000000000000000 R12: ffffea0002080008 R13: ffffea0002080000 R14: 000000000000001b R15: 0000000000000002 FS: 00007f8c05931700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000205f7ff8 CR3: 000000001e545000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000003b 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:do_strnlen_user lib/strnlen_user.c:37 [inline] RIP: 0010:strnlen_user+0xcf/0x280 lib/strnlen_user.c:113 Code: ec 0f 87 2f 01 00 00 e8 9f 1d 69 fd 0f 01 cb 0f ae e8 4c 89 e0 31 ed 49 83 e4 f8 83 e0 07 48 01 c3 48 89 44 24 10 48 89 1c 24 <49> 8b 04 24 31 ff 89 ee 49 89 c6 e8 91 1f 69 fd 85 ed 0f 85 d2 00 RSP: 0018:ffffc9000310fe28 EFLAGS: 00050202 RAX: 0000000000000002 RBX: 0000000000001002 RCX: 0000000000000000 RDX: ffff8880405457c0 RSI: ffffffff841008f1 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00000000205f7ffa R09: 0000000000000001 R10: ffffffff841008e3 R11: 0000000000000000 R12: 00000000205f7ff8 R13: 0000000000001000 R14: 00000000205f7ffa R15: 0000000000000000 strndup_user+0x23/0xe0 mm/util.c:224 copy_mount_string fs/namespace.c:3263 [inline] __do_sys_mount fs/namespace.c:3561 [inline] __se_sys_mount fs/namespace.c:3553 [inline] __x64_sys_mount+0x134/0x300 fs/namespace.c:3553 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:0x7f8c04889049 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:00007f8c05931168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f8c0499bf60 RCX: 00007f8c04889049 RDX: 00000000205f7ffa RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f8c048e308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffde24753df R14: 00007f8c05931300 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:ffffc9000310f9b0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880405457c0 RSI: ffffffff81a0dcca RDI: 0000000000000003 RBP: ffffea0002080000 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff81a0dcbd R11: 0000000000000000 R12: ffffea0002080008 R13: ffffea0002080000 R14: 000000000000001b R15: 0000000000000002 FS: 00007f8c05931700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000205f7ff8 CR3: 000000001e545000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: ec in (%dx),%al 1: 0f 87 2f 01 00 00 ja 0x136 7: e8 9f 1d 69 fd callq 0xfd691dab c: 0f 01 cb stac f: 0f ae e8 lfence 12: 4c 89 e0 mov %r12,%rax 15: 31 ed xor %ebp,%ebp 17: 49 83 e4 f8 and $0xfffffffffffffff8,%r12 1b: 83 e0 07 and $0x7,%eax 1e: 48 01 c3 add %rax,%rbx 21: 48 89 44 24 10 mov %rax,0x10(%rsp) 26: 48 89 1c 24 mov %rbx,(%rsp) * 2a: 49 8b 04 24 mov (%r12),%rax <-- trapping instruction 2e: 31 ff xor %edi,%edi 30: 89 ee mov %ebp,%esi 32: 49 89 c6 mov %rax,%r14 35: e8 91 1f 69 fd callq 0xfd691fcb 3a: 85 ed test %ebp,%ebp 3c: 0f .byte 0xf 3d: 85 d2 test %edx,%edx