get_swap_device: Bad swap file entry 4003fffffffc9f7f general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 6261 Comm: syz-executor.2 Not tainted 5.10.161-syzkaller-00019-g416c4356f372 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/17/2023 RIP: 0010:do_swap_page+0x301/0x1ce0 mm/memory.c:3650 Code: 84 db 4c 8b 6c 24 20 75 62 e8 ab d5 d0 ff 41 be 01 00 00 00 4c 8b 7c 24 28 eb 7c 48 89 df e8 96 71 08 00 49 89 c6 48 c1 e8 03 <42> 80 3c 20 00 49 89 df 74 08 4c 89 f7 e8 4d d7 0a 00 4d 8b 36 bb RSP: 0000:ffffc9000654f8c0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 4003fffffffc9f7f RCX: ffff88816496cf00 RDX: 0000000000000000 RSI: 0000000000000010 RDI: 0000000000000000 RBP: ffffc9000654fa48 R08: ffffffff81a4bdd3 R09: ffffed103ee2a5e8 R10: ffffed103ee2a5e8 R11: 1ffff1103ee2a5e7 R12: dffffc0000000000 R13: ffff88810ea3a250 R14: 0000000000000000 R15: 4003fffffffc9f7f FS: 00007fa504b97700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa5065ff00e CR3: 000000011320b000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: handle_pte_fault+0x49e/0x9d0 mm/memory.c:4744 ___handle_speculative_fault+0xfca/0x1470 mm/memory.c:5149 __handle_speculative_fault+0xc3/0x2b0 mm/memory.c:5192 handle_speculative_fault include/linux/mm.h:1817 [inline] do_user_addr_fault+0x885/0xce0 arch/x86/mm/fault.c:1319 handle_page_fault arch/x86/mm/fault.c:1462 [inline] exc_page_fault+0x71/0x1b0 arch/x86/mm/fault.c:1518 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571 RIP: 0033:0x7fa505de56a7 Code: 44 00 1c 85 c0 74 bd 48 89 f8 48 c1 e0 05 48 01 f8 48 c1 e0 04 48 8d 44 02 2e 31 d2 4c 01 c0 eb 05 66 90 83 c2 01 48 83 c0 10 <40> 38 70 f0 75 f3 48 89 f8 48 63 d2 48 c1 e0 05 48 01 c7 48 8d 44 RSP: 002b:00007fa504b960f8 EFLAGS: 00010206 RAX: 00007fa5065ff01e RBX: fffffffffffffe30 RCX: 0000000000000000 RDX: 00000000000575cc RSI: 0000000000000004 RDI: 0000000000000000 RBP: 0000000020000000 R08: 00007fa506089320 R09: 0000000000000001 R10: 0000000000000003 R11: fffffffffffffe30 R12: 0000000000000003 R13: 00007ffd48ccfccf R14: 00007fa504b97300 R15: 0000000000022000 Modules linked in: ---[ end trace 022accb3bcc05a62 ]--- RIP: 0010:do_swap_page+0x301/0x1ce0 mm/memory.c:3650 Code: 84 db 4c 8b 6c 24 20 75 62 e8 ab d5 d0 ff 41 be 01 00 00 00 4c 8b 7c 24 28 eb 7c 48 89 df e8 96 71 08 00 49 89 c6 48 c1 e8 03 <42> 80 3c 20 00 49 89 df 74 08 4c 89 f7 e8 4d d7 0a 00 4d 8b 36 bb RSP: 0000:ffffc9000654f8c0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 4003fffffffc9f7f RCX: ffff88816496cf00 RDX: 0000000000000000 RSI: 0000000000000010 RDI: 0000000000000000 RBP: ffffc9000654fa48 R08: ffffffff81a4bdd3 R09: ffffed103ee2a5e8 R10: ffffed103ee2a5e8 R11: 1ffff1103ee2a5e7 R12: dffffc0000000000 R13: ffff88810ea3a250 R14: 0000000000000000 R15: 4003fffffffc9f7f FS: 00007fa504b97700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa5065ff00e CR3: 000000011320b000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 84 db test %bl,%bl 2: 4c 8b 6c 24 20 mov 0x20(%rsp),%r13 7: 75 62 jne 0x6b 9: e8 ab d5 d0 ff callq 0xffd0d5b9 e: 41 be 01 00 00 00 mov $0x1,%r14d 14: 4c 8b 7c 24 28 mov 0x28(%rsp),%r15 19: eb 7c jmp 0x97 1b: 48 89 df mov %rbx,%rdi 1e: e8 96 71 08 00 callq 0x871b9 23: 49 89 c6 mov %rax,%r14 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 49 89 df mov %rbx,%r15 32: 74 08 je 0x3c 34: 4c 89 f7 mov %r14,%rdi 37: e8 4d d7 0a 00 callq 0xad789 3c: 4d 8b 36 mov (%r14),%r14 3f: bb .byte 0xbb