general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 1 PID: 25458 Comm: syz-executor.5 Not tainted 6.2.0-rc7-next-20230206-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:_compound_head include/linux/page-flags.h:251 [inline] RIP: 0010:free_swap_cache+0x25/0x3d0 mm/swap_state.c:288 Code: 00 0f 1f 40 00 66 0f 1f 00 41 54 55 48 89 fd 53 e8 20 ba b9 ff 48 8d 7d 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 35 03 00 00 4c 8b 65 08 31 ff 4c 89 e3 83 e3 01 RSP: 0018:ffffc9000406f658 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff888056b040b8 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff81caab60 RDI: 0000000000000008 RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000000025 R10: 0000000000000014 R11: 0000000000000000 R12: 0000000000000025 R13: dffffc0000000000 R14: ffff888056b04010 R15: 0000000000000025 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fba3c10e264 CR3: 000000000c56f000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: free_pages_and_swap_cache+0x60/0xa0 mm/swap_state.c:316 tlb_batch_pages_flush+0xa8/0x1a0 mm/mmu_gather.c:97 zap_pte_range mm/memory.c:1487 [inline] zap_pmd_range mm/memory.c:1536 [inline] zap_pud_range mm/memory.c:1565 [inline] zap_p4d_range mm/memory.c:1586 [inline] unmap_page_range+0x2605/0x3ce0 mm/memory.c:1607 unmap_single_vma+0x194/0x2a0 mm/memory.c:1653 unmap_vmas+0x234/0x380 mm/memory.c:1692 exit_mmap+0x190/0x7d0 mm/mmap.c:3036 __mmput+0x128/0x4c0 kernel/fork.c:1209 mmput+0x60/0x70 kernel/fork.c:1231 exit_mm kernel/exit.c:563 [inline] do_exit+0x9d7/0x2b60 kernel/exit.c:856 do_group_exit+0xd4/0x2a0 kernel/exit.c:1019 get_signal+0x2321/0x25b0 kernel/signal.c:2859 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f9b5168c0c9 Code: Unable to access opcode bytes at 0x7f9b5168c09f. RSP: 002b:00007f9b5241f218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f9b517ac058 RCX: 00007f9b5168c0c9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f9b517ac058 RBP: 00007f9b517ac050 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9b517ac05c R13: 00007ffe5754129f R14: 00007f9b5241f300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:_compound_head include/linux/page-flags.h:251 [inline] RIP: 0010:free_swap_cache+0x25/0x3d0 mm/swap_state.c:288 Code: 00 0f 1f 40 00 66 0f 1f 00 41 54 55 48 89 fd 53 e8 20 ba b9 ff 48 8d 7d 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 35 03 00 00 4c 8b 65 08 31 ff 4c 89 e3 83 e3 01 RSP: 0018:ffffc9000406f658 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff888056b040b8 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff81caab60 RDI: 0000000000000008 RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000000025 R10: 0000000000000014 R11: 0000000000000000 R12: 0000000000000025 R13: dffffc0000000000 R14: ffff888056b04010 R15: 0000000000000025 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f06e33821b8 CR3: 0000000052063000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 0f 1f 40 00 nopl 0x0(%rax) 4: 66 0f 1f 00 nopw (%rax) 8: 41 54 push %r12 a: 55 push %rbp b: 48 89 fd mov %rdi,%rbp e: 53 push %rbx f: e8 20 ba b9 ff callq 0xffb9ba34 14: 48 8d 7d 08 lea 0x8(%rbp),%rdi 18: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1f: fc ff df 22: 48 89 fa mov %rdi,%rdx 25: 48 c1 ea 03 shr $0x3,%rdx * 29: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2d: 0f 85 35 03 00 00 jne 0x368 33: 4c 8b 65 08 mov 0x8(%rbp),%r12 37: 31 ff xor %edi,%edi 39: 4c 89 e3 mov %r12,%rbx 3c: 83 e3 01 and $0x1,%ebx