Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 13989 Comm: syz.2.3016 Not tainted 6.10.0-syzkaller-11926-g539fbb912321 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__dev_flush+0x49/0x1e0 kernel/bpf/devmap.c:424 Code: 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 98 01 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 2f 48 8d 5d 80 48 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 69 01 00 00 48 8b 45 00 49 39 ef 4c 8d 60 80 0f RSP: 0018:ffffc90000007c80 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffffffffffffff81 RCX: ffffffff88d74dcb RDX: 0000000000000000 RSI: ffffffff81afd186 RDI: ffffc900035e7570 RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000010 R11: 0000000000000000 R12: ffffc900035e7560 R13: ffff88806b040648 R14: ffffc900035e7570 R15: ffffc900035e7570 FS: 0000000000000000(0000) GS:ffff88806b000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdafe5fcfe8 CR3: 000000000d97c000 CR4: 0000000000350ef0 Call Trace: xdp_do_check_flushed+0x26b/0x4e0 net/core/filter.c:4300 __napi_poll.constprop.0+0xd1/0x550 net/core/dev.c:6774 napi_poll net/core/dev.c:6840 [inline] net_rx_action+0xa92/0x1010 net/core/dev.c:6962 handle_softirqs+0x216/0x8f0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:637 [inline] irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:rcu_read_unlock_sched include/linux/rcupdate.h:949 [inline] RIP: 0010:pfn_valid include/linux/mmzone.h:2034 [inline] RIP: 0010:page_table_check_clear mm/page_table_check.c:70 [inline] RIP: 0010:__page_table_check_pte_clear+0x49d/0x580 mm/page_table_check.c:169 Code: be b5 03 00 00 48 c7 c7 a0 02 3d 8b c6 05 a5 8c de 0d 01 e8 85 d6 75 ff e9 3d ff ff ff 45 31 e4 e9 f6 fc ff ff e8 f3 99 98 ff 4e dd 7e ff 31 ff 41 89 c4 89 c6 e8 82 94 98 ff 45 84 e4 0f 85 RSP: 0018:ffffc900035e7608 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 1ffff920006bcec1 RCX: ffffffff81f1e968 RDX: ffff88802a8b8000 RSI: ffffffff81f1eb4d RDI: 0000000000000005 RBP: 000000000003d653 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000008 R14: 0000000000000001 R15: ffffc900035e7ab8 page_table_check_pte_clear include/linux/page_table_check.h:49 [inline] ptep_get_and_clear_full arch/x86/include/asm/pgtable.h:1284 [inline] get_and_clear_full_ptes include/linux/pgtable.h:678 [inline] zap_present_folio_ptes mm/memory.c:1493 [inline] zap_present_ptes mm/memory.c:1576 [inline] zap_pte_range mm/memory.c:1618 [inline] zap_pmd_range mm/memory.c:1736 [inline] zap_pud_range mm/memory.c:1765 [inline] zap_p4d_range mm/memory.c:1786 [inline] unmap_page_range+0x21ac/0x3c10 mm/memory.c:1807 unmap_single_vma+0x194/0x2b0 mm/memory.c:1853 unmap_vmas+0x22f/0x490 mm/memory.c:1897 exit_mmap+0x1b8/0xb20 mm/mmap.c:3382 __mmput+0x12a/0x480 kernel/fork.c:1345 mmput+0x62/0x70 kernel/fork.c:1367 exit_mm kernel/exit.c:571 [inline] do_exit+0x9bf/0x2bb0 kernel/exit.c:869 do_group_exit+0xd3/0x2a0 kernel/exit.c:1031 get_signal+0x25fd/0x2770 kernel/signal.c:2917 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5400b75f19 Code: Unable to access opcode bytes at 0x7f5400b75eef. RSP: 002b:00007f540187b0f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f5400d05f68 RCX: 00007f5400b75f19 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f5400d05f68 RBP: 00007f5400d05f60 R08: 00007f540187b6c0 R09: 00007f540187b6c0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5400d05f6c R13: 000000000000000b R14: 00007ffc74d99720 R15: 00007ffc74d99808 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__dev_flush+0x49/0x1e0 kernel/bpf/devmap.c:424 Code: 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 98 01 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 2f 48 8d 5d 80 48 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 69 01 00 00 48 8b 45 00 49 39 ef 4c 8d 60 80 0f RSP: 0018:ffffc90000007c80 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffffffffffffff81 RCX: ffffffff88d74dcb RDX: 0000000000000000 RSI: ffffffff81afd186 RDI: ffffc900035e7570 RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000010 R11: 0000000000000000 R12: ffffc900035e7560 R13: ffff88806b040648 R14: ffffc900035e7570 R15: ffffc900035e7570 FS: 0000000000000000(0000) GS:ffff88806b000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdafe5fcfe8 CR3: 000000000d97c000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess), 4 bytes skipped: 0: 48 c1 ea 03 shr $0x3,%rdx 4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 8: 0f 85 98 01 00 00 jne 0x1a6 e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 15: fc ff df 18: 49 8b 2f mov (%r15),%rbp 1b: 48 8d 5d 80 lea -0x80(%rbp),%rbx 1f: 48 89 ea mov %rbp,%rdx 22: 48 c1 ea 03 shr $0x3,%rdx * 26: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2a: 0f 85 69 01 00 00 jne 0x199 30: 48 8b 45 00 mov 0x0(%rbp),%rax 34: 49 39 ef cmp %rbp,%r15 37: 4c 8d 60 80 lea -0x80(%rax),%r12 3b: 0f .byte 0xf