Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 UID: 0 PID: 12696 Comm: syz.2.2123 Not tainted 6.10.0-next-20240726-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:bq_flush_to_queue+0x44/0x610 kernel/bpf/cpumap.c:675 Code: df e8 30 8b d6 ff 49 8d 5e 50 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 a6 0f 3e 00 48 8b 2b 48 89 e8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 1d 05 00 00 44 8b 65 00 4d 8d 6e 58 4c RSP: 0018:ffffc90000a18a80 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff8880628b0990 RCX: ffff888022e88000 RDX: 0000000080000101 RSI: 0000000000000010 RDI: ffff8880628b0940 RBP: 0000000000000000 R08: ffffffff8992342a R09: 1ffffffff202fc75 R10: dffffc0000000000 R11: fffffbfff202fc76 R12: 0000000000000001 R13: ffffc90003bbf820 R14: ffff8880628b0940 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020438000 CR3: 0000000050b4a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __cpu_map_flush+0x5d/0xd0 kernel/bpf/cpumap.c:767 xdp_do_check_flushed+0x136/0x240 net/core/filter.c:4311 __napi_poll+0xe4/0x490 net/core/dev.c:6774 napi_poll net/core/dev.c:6840 [inline] net_rx_action+0x89b/0x1240 net/core/dev.c:6962 handle_softirqs+0x2c4/0x970 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637 irq_exit_rcu+0x9/0x30 kernel/softirq.c:649 common_interrupt+0xaa/0xd0 arch/x86/kernel/irq.c:278 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xd8/0x140 kernel/locking/spinlock.c:194 Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 8e be 37 f6 f6 44 24 21 02 75 52 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 83 4f 9f f5 65 8b 05 04 46 40 74 85 c0 74 43 48 c7 04 24 0e 36 RSP: 0018:ffffc90003bbf260 EFLAGS: 00000206 RAX: 8ce8043b71cad300 RBX: 1ffff92000777e50 RCX: ffffffff817022aa RDX: dffffc0000000000 RSI: ffffffff8c0ad540 RDI: 0000000000000001 RBP: ffffc90003bbf2f0 R08: ffffffff93737837 R09: 1ffffffff26e6f06 R10: dffffc0000000000 R11: fffffbfff26e6f07 R12: dffffc0000000000 R13: 1ffff92000777e4c R14: ffffc90003bbf280 R15: 0000000000000246 __debug_check_no_obj_freed lib/debugobjects.c:999 [inline] debug_check_no_obj_freed+0x561/0x580 lib/debugobjects.c:1020 slab_free_hook mm/slub.c:2219 [inline] slab_free mm/slub.c:4473 [inline] kmem_cache_free+0x10f/0x350 mm/slub.c:4548 pmd_ptlock_free include/linux/mm.h:3041 [inline] pagetable_pmd_dtor include/linux/mm.h:3082 [inline] ___pmd_free_tlb+0x7c/0x1a0 arch/x86/mm/pgtable.c:72 __pmd_free_tlb arch/x86/include/asm/pgalloc.h:93 [inline] free_pmd_range mm/memory.c:228 [inline] free_pud_range mm/memory.c:246 [inline] free_p4d_range mm/memory.c:280 [inline] free_pgd_range+0x9fe/0xdd0 mm/memory.c:360 free_pgtables+0x719/0x840 exit_mmap+0x447/0xc80 mm/mmap.c:3423 __mmput+0x115/0x390 kernel/fork.c:1347 exit_mm+0x220/0x310 kernel/exit.c:571 do_exit+0x9b2/0x27f0 kernel/exit.c:869 do_group_exit+0x207/0x2c0 kernel/exit.c:1031 get_signal+0x16a1/0x1740 kernel/signal.c:2917 arch_do_signal_or_restart+0x96/0x830 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+0xc9/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7feecf977299 Code: Unable to access opcode bytes at 0x7feecf97726f. RSP: 002b:00007feed07a20f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007feecfb05f88 RCX: 00007feecf977299 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007feecfb05f88 RBP: 00007feecfb05f80 R08: 00007feed07a26c0 R09: 00007feed07a26c0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007feecfb05f8c R13: 000000000000000b R14: 00007ffd75163bb0 R15: 00007ffd75163c98 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bq_flush_to_queue+0x44/0x610 kernel/bpf/cpumap.c:675 Code: df e8 30 8b d6 ff 49 8d 5e 50 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 a6 0f 3e 00 48 8b 2b 48 89 e8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 1d 05 00 00 44 8b 65 00 4d 8d 6e 58 4c RSP: 0018:ffffc90000a18a80 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff8880628b0990 RCX: ffff888022e88000 RDX: 0000000080000101 RSI: 0000000000000010 RDI: ffff8880628b0940 RBP: 0000000000000000 R08: ffffffff8992342a R09: 1ffffffff202fc75 R10: dffffc0000000000 R11: fffffbfff202fc76 R12: 0000000000000001 R13: ffffc90003bbf820 R14: ffff8880628b0940 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020438000 CR3: 0000000050b4a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: df e8 fucomip %st(0),%st 2: 30 8b d6 ff 49 8d xor %cl,-0x72b6002a(%rbx) 8: 5e pop %rsi 9: 50 push %rax a: 48 89 d8 mov %rbx,%rax d: 48 c1 e8 03 shr $0x3,%rax 11: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 16: 74 08 je 0x20 18: 48 89 df mov %rbx,%rdi 1b: e8 a6 0f 3e 00 call 0x3e0fc6 20: 48 8b 2b mov (%rbx),%rbp 23: 48 89 e8 mov %rbp,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 1d 05 00 00 jne 0x554 37: 44 8b 65 00 mov 0x0(%rbp),%r12d 3b: 4d 8d 6e 58 lea 0x58(%r14),%r13 3f: 4c rex.WR