Oops: general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 0 UID: 0 PID: 5985 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_mtu include/net/dst.h:219 [inline] RIP: 0010:wg_xmit+0x355/0xf70 drivers/net/wireguard/device.c:173 Code: 00 fc ff df 80 3c 08 00 74 08 4c 89 ff e8 83 84 d9 fb 4d 8b 3f 49 83 c7 20 4c 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 ff e8 5d 84 d9 fb 4d 8b 3f 49 81 ff e0 38 RSP: 0018:ffffc90003cc7060 EFLAGS: 00010202 RAX: 0000000000000004 RBX: ffffc90003cc7ba0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90003cc7190 R08: ffffffff8fced577 R09: 1ffffffff1f9daae R10: dffffc0000000000 R11: fffffbfff1f9daaf R12: ffffc90003cc70c0 R13: 1ffff1102ebe283b R14: ffff888175f14180 R15: 0000000000000020 FS: 00005555734f8500(0000) GS:ffff88818e327000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30663fff CR3: 00000001704ae000 CR4: 00000000000006f0 Call Trace: __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_bd919e7baf24f63c+0x5f/0x68 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:0x7fc57899acb9 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:00007ffd806bfbf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fc578c15fa0 RCX: 00007fc57899acb9 RDX: 0000000000000050 RSI: 0000200000000080 RDI: 000000000000000a RBP: 00007fc578a08bf7 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc578c15fac R14: 00007fc578c15fa0 R15: 00007fc578c15fa0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dst_mtu include/net/dst.h:219 [inline] RIP: 0010:wg_xmit+0x355/0xf70 drivers/net/wireguard/device.c:173 Code: 00 fc ff df 80 3c 08 00 74 08 4c 89 ff e8 83 84 d9 fb 4d 8b 3f 49 83 c7 20 4c 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 ff e8 5d 84 d9 fb 4d 8b 3f 49 81 ff e0 38 RSP: 0018:ffffc90003cc7060 EFLAGS: 00010202 RAX: 0000000000000004 RBX: ffffc90003cc7ba0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90003cc7190 R08: ffffffff8fced577 R09: 1ffffffff1f9daae R10: dffffc0000000000 R11: fffffbfff1f9daaf R12: ffffc90003cc70c0 R13: 1ffff1102ebe283b R14: ffff888175f14180 R15: 0000000000000020 FS: 00005555734f8500(0000) GS:ffff88818e327000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30663fff CR3: 00000001704ae000 CR4: 00000000000006f0 ---------------- Code disassembly (best guess), 3 bytes skipped: 0: df 80 3c 08 00 74 filds 0x7400083c(%rax) 6: 08 4c 89 ff or %cl,-0x1(%rcx,%rcx,4) a: e8 83 84 d9 fb call 0xfbd98492 f: 4d 8b 3f mov (%r15),%r15 12: 49 83 c7 20 add $0x20,%r15 16: 4c 89 f8 mov %r15,%rax 19: 48 c1 e8 03 shr $0x3,%rax 1d: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 24: fc ff df * 27: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 2b: 74 08 je 0x35 2d: 4c 89 ff mov %r15,%rdi 30: e8 5d 84 d9 fb call 0xfbd98492 35: 4d 8b 3f mov (%r15),%r15 38: 49 rex.WB 39: 81 .byte 0x81 3a: ff e0 jmp *%rax 3c: 38 .byte 0x38