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: 10860 Comm: syz.2.1728 Not tainted 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/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 d2 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:ffffc900034bf770 EFLAGS: 00010256 RAX: dffffc0000000000 RBX: 000000000000000e RCX: ffffc9001457e000 RDX: 0000000000000000 RSI: ffffffff81b45a90 RDI: 0000000000000000 RBP: ffff8880677a8070 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888069e0a000 R14: 0000000000000000 R15: 0000000000000012 FS: 00007fce55c896c0(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020479000 CR3: 000000007b38e000 CR4: 0000000000350ef0 Call Trace: __xdp_do_redirect_frame net/core/filter.c:4402 [inline] xdp_do_redirect_frame+0x1b8/0x590 net/core/filter.c:4456 xdp_test_run_batch net/bpf/test_run.c:336 [inline] bpf_test_run_xdp_live+0x4a3/0x1bb0 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x82d/0x1530 net/bpf/test_run.c:1281 bpf_prog_test_run kernel/bpf/syscall.c:4292 [inline] __sys_bpf+0x10d5/0x49a0 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x78/0xc0 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fce54f75bd9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fce55c89048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fce55103f60 RCX: 00007fce54f75bd9 RDX: 0000000000000050 RSI: 0000000020000240 RDI: 000000000000000a RBP: 00007fce54fe4a98 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fce55103f60 R15: 00007fff27620cd8 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 d2 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:ffffc900034bf770 EFLAGS: 00010256 RAX: dffffc0000000000 RBX: 000000000000000e RCX: ffffc9001457e000 RDX: 0000000000000000 RSI: ffffffff81b45a90 RDI: 0000000000000000 RBP: ffff8880677a8070 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888069e0a000 R14: 0000000000000000 R15: 0000000000000012 FS: 00007fce55c896c0(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020479000 CR3: 000000007b38e000 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 d2 da ff call 0xffdad2b9 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