Oops: general protection fault, probably for non-canonical address 0xdffffc000000000d: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000068-0x000000000000006f] CPU: 1 UID: 0 PID: 5991 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:dst_neigh_lookup include/net/dst.h:404 [inline] RIP: 0010:ip6_tnl_xmit+0x14a1/0x2af0 net/ipv6/ip6_tunnel.c:1123 Code: 74 12 4c 89 ef e8 af d8 ea f7 48 ba 00 00 00 00 00 fc ff df 4d 01 f4 49 83 c4 18 4d 8b 6d 00 49 83 c5 68 4c 89 e8 48 c1 e8 03 <80> 3c 10 00 74 08 4c 89 ef e8 81 d8 ea f7 4d 8b 5d 00 4c 89 ff 31 RSP: 0018:ffffc90003976e60 EFLAGS: 00010202 RAX: 000000000000000d RBX: 1ffff1102e6c7d07 RCX: ffff88810b2c57c0 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90003977028 R08: ffff88810b2c57c0 R09: 0000000000000002 R10: 000000000000dd86 R11: 0000000000000000 R12: ffff88816a0ce066 R13: 0000000000000068 R14: ffff88816a0ce000 R15: ffffc90003977ba0 FS: 000055555f394500(0000) GS:ffff8882a9927000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30263fff CR3: 000000010d832000 CR4: 00000000000006f0 Call Trace: ipxip6_tnl_xmit net/ipv6/ip6_tunnel.c:1400 [inline] ip6_tnl_start_xmit+0xc79/0x11d0 net/ipv6/ip6_tunnel.c:1448 __netdev_start_xmit include/linux/netdevice.h:5273 [inline] netdev_start_xmit include/linux/netdevice.h:5282 [inline] xmit_one net/core/dev.c:3853 [inline] dev_hard_start_xmit+0x2cd/0x7f0 net/core/dev.c:3869 __dev_queue_xmit+0x14dd/0x32a0 net/core/dev.c:4819 dev_queue_xmit include/linux/netdevice.h:3381 [inline] __bpf_tx_skb+0x18e/0x260 net/core/filter.c:2153 ____bpf_clone_redirect net/core/filter.c:2487 [inline] bpf_clone_redirect+0x313/0x4b0 net/core/filter.c:2450 bpf_prog_2f59963de350c2d2+0x5e/0x67 bpf_dispatcher_nop_func include/linux/bpf.h:1402 [inline] __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run include/linux/filter.h:730 [inline] bpf_test_run+0x354/0x830 net/bpf/test_run.c:423 bpf_prog_test_run_skb+0x13b4/0x1e00 net/bpf/test_run.c:1168 bpf_prog_test_run+0x2c7/0x340 kernel/bpf/syscall.c:4721 __sys_bpf+0x643/0x950 kernel/bpf/syscall.c:6246 __do_sys_bpf kernel/bpf/syscall.c:6341 [inline] __se_sys_bpf kernel/bpf/syscall.c:6339 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6339 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff39439acb9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc03f9fef8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007ff394615fa0 RCX: 00007ff39439acb9 RDX: 0000000000000028 RSI: 00002000000000c0 RDI: 000000000000000a RBP: 00007ff394408bf7 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff394615fac R14: 00007ff394615fa0 R15: 00007ff394615fa0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dst_neigh_lookup include/net/dst.h:404 [inline] RIP: 0010:ip6_tnl_xmit+0x14a1/0x2af0 net/ipv6/ip6_tunnel.c:1123 Code: 74 12 4c 89 ef e8 af d8 ea f7 48 ba 00 00 00 00 00 fc ff df 4d 01 f4 49 83 c4 18 4d 8b 6d 00 49 83 c5 68 4c 89 e8 48 c1 e8 03 <80> 3c 10 00 74 08 4c 89 ef e8 81 d8 ea f7 4d 8b 5d 00 4c 89 ff 31 RSP: 0018:ffffc90003976e60 EFLAGS: 00010202 RAX: 000000000000000d RBX: 1ffff1102e6c7d07 RCX: ffff88810b2c57c0 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90003977028 R08: ffff88810b2c57c0 R09: 0000000000000002 R10: 000000000000dd86 R11: 0000000000000000 R12: ffff88816a0ce066 R13: 0000000000000068 R14: ffff88816a0ce000 R15: ffffc90003977ba0 FS: 000055555f394500(0000) GS:ffff8882a9927000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30263fff CR3: 000000010d832000 CR4: 00000000000006f0 ---------------- Code disassembly (best guess): 0: 74 12 je 0x14 2: 4c 89 ef mov %r13,%rdi 5: e8 af d8 ea f7 call 0xf7ead8b9 a: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx 11: fc ff df 14: 4d 01 f4 add %r14,%r12 17: 49 83 c4 18 add $0x18,%r12 1b: 4d 8b 6d 00 mov 0x0(%r13),%r13 1f: 49 83 c5 68 add $0x68,%r13 23: 4c 89 e8 mov %r13,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 10 00 cmpb $0x0,(%rax,%rdx,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 4c 89 ef mov %r13,%rdi 33: e8 81 d8 ea f7 call 0xf7ead8b9 38: 4d 8b 5d 00 mov 0x0(%r13),%r11 3c: 4c 89 ff mov %r15,%rdi 3f: 31 .byte 0x31