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 PID: 14866 Comm: syz-executor.3 Not tainted 6.9.0-syzkaller-08995-g0450d2083be6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:dev_map_enqueue+0x31/0x3e0 kernel/bpf/devmap.c:539 Code: 56 41 55 49 89 d5 41 54 49 89 fc 55 48 89 f5 53 48 83 ec 08 e8 a0 af da ff 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 86 03 00 00 49 8d 7c 24 18 49 8b 1c 24 48 b8 00 RSP: 0018:ffffc9000d30f770 EFLAGS: 00010256 RAX: dffffc0000000000 RBX: 0000000000000019 RCX: ffffc900170c5000 RDX: 0000000000000000 RSI: ffffffff81b485d0 RDI: 0000000000000000 RBP: ffff88807c309070 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888046b72000 R14: 0000000000000000 R15: 000000000000006f FS: 00007fee867796c0(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31e25000 CR3: 00000000246f2000 CR4: 0000000000350ef0 Call Trace: __xdp_do_redirect_frame net/core/filter.c:4397 [inline] xdp_do_redirect_frame+0x1b8/0x590 net/core/filter.c:4451 xdp_test_run_batch net/bpf/test_run.c:336 [inline] bpf_test_run_xdp_live+0x4aa/0x1bc0 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x82d/0x1530 net/bpf/test_run.c:1275 bpf_prog_test_run kernel/bpf/syscall.c:4291 [inline] __sys_bpf+0xd60/0x4b80 kernel/bpf/syscall.c:5705 __do_sys_bpf kernel/bpf/syscall.c:5794 [inline] __se_sys_bpf kernel/bpf/syscall.c:5792 [inline] __x64_sys_bpf+0x78/0xc0 kernel/bpf/syscall.c:5792 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fee85a7cee9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fee867790c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fee85babf80 RCX: 00007fee85a7cee9 RDX: 0000000000000050 RSI: 0000000020000240 RDI: 000000000000000a RBP: 00007fee85ac949e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fee85babf80 R15: 00007ffd032d01a8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dev_map_enqueue+0x31/0x3e0 kernel/bpf/devmap.c:539 Code: 56 41 55 49 89 d5 41 54 49 89 fc 55 48 89 f5 53 48 83 ec 08 e8 a0 af da ff 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 86 03 00 00 49 8d 7c 24 18 49 8b 1c 24 48 b8 00 RSP: 0018:ffffc9000d30f770 EFLAGS: 00010256 RAX: dffffc0000000000 RBX: 0000000000000019 RCX: ffffc900170c5000 RDX: 0000000000000000 RSI: ffffffff81b485d0 RDI: 0000000000000000 RBP: ffff88807c309070 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888046b72000 R14: 0000000000000000 R15: 000000000000006f FS: 00007fee867796c0(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31e25000 CR3: 00000000246f2000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 56 push %rsi 1: 41 55 push %r13 3: 49 89 d5 mov %rdx,%r13 6: 41 54 push %r12 8: 49 89 fc mov %rdi,%r12 b: 55 push %rbp c: 48 89 f5 mov %rsi,%rbp f: 53 push %rbx 10: 48 83 ec 08 sub $0x8,%rsp 14: e8 a0 af da ff call 0xffdaafb9 19: 4c 89 e2 mov %r12,%rdx 1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 23: fc ff df 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 86 03 00 00 jne 0x3ba 34: 49 8d 7c 24 18 lea 0x18(%r12),%rdi 39: 49 8b 1c 24 mov (%r12),%rbx 3d: 48 rex.W 3e: b8 .byte 0xb8