Oops: general protection fault, probably for non-canonical address 0xdffffc000000003b: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x00000000000001d8-0x00000000000001df] CPU: 0 PID: 17012 Comm: syz.4.3260 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:__xdp_enqueue kernel/bpf/devmap.c:484 [inline] RIP: 0010:dev_map_enqueue+0x7c/0x3e0 kernel/bpf/devmap.c:541 Code: c1 ea 03 80 3c 02 00 0f 85 58 03 00 00 48 8d bb d8 01 00 00 4d 8b 7c 24 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e db 02 00 00 44 8b a3 d8 01 00 RSP: 0018:ffffc900034a7770 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90015ebb000 RDX: 000000000000003b RSI: ffffffff81b30b90 RDI: 00000000000001d8 RBP: ffff8880765d0070 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000f90 R12: ffff888078ee0880 R13: ffff88801fcfe000 R14: ffff888078ee0880 R15: ffffffff8da63d80 FS: 00007f40d98236c0(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2cc1eff8 CR3: 000000005db6a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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+0x10d2/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:0x7f40d8975bd9 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:00007f40d9823048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f40d8b03f60 RCX: 00007f40d8975bd9 RDX: 0000000000000050 RSI: 0000000020000240 RDI: 000000000000000a RBP: 00007f40d89e4a98 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f40d8b03f60 R15: 00007ffd558d9988 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__xdp_enqueue kernel/bpf/devmap.c:484 [inline] RIP: 0010:dev_map_enqueue+0x7c/0x3e0 kernel/bpf/devmap.c:541 Code: c1 ea 03 80 3c 02 00 0f 85 58 03 00 00 48 8d bb d8 01 00 00 4d 8b 7c 24 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e db 02 00 00 44 8b a3 d8 01 00 RSP: 0018:ffffc900034a7770 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90015ebb000 RDX: 000000000000003b RSI: ffffffff81b30b90 RDI: 00000000000001d8 RBP: ffff8880765d0070 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000f90 R12: ffff888078ee0880 R13: ffff88801fcfe000 R14: ffff888078ee0880 R15: ffffffff8da63d80 FS: 00007f40d98236c0(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2cc1eff8 CR3: 000000005db6a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c1 ea 03 shr $0x3,%edx 3: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 7: 0f 85 58 03 00 00 jne 0x365 d: 48 8d bb d8 01 00 00 lea 0x1d8(%rbx),%rdi 14: 4d 8b 7c 24 18 mov 0x18(%r12),%r15 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 74 08 je 0x3a 32: 3c 03 cmp $0x3,%al 34: 0f 8e db 02 00 00 jle 0x315 3a: 44 rex.R 3b: 8b .byte 0x8b 3c: a3 .byte 0xa3 3d: d8 01 fadds (%rcx)