Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] 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:xfrm_lookup_with_ifid+0xe1/0x1af0 net/xfrm/xfrm_policy.c:3181 Code: 24 20 4d 8d 66 08 4c 89 e0 48 c1 e8 03 4d 89 ee 42 80 3c 28 00 74 08 4c 89 e7 e8 ba 20 17 f8 4d 8b 24 24 4c 89 e0 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 94 17 00 00 41 0f b7 04 24 89 44 24 28 RSP: 0018:ffffc90003e96fe0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffc90003e97080 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc90003e97090 RBP: ffffc90003e970f8 R08: ffffc90003e9708f R09: 0000000000000000 R10: ffffc90003e97080 R11: fffff520007d2e12 R12: 0000000000000000 R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000000000 FS: 000055558c0ab500(0000) GS:ffff88818e328000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30363fff CR3: 00000001b9fc8000 CR4: 00000000000006f0 Call Trace: xfrm_lookup net/xfrm/xfrm_policy.c:3336 [inline] xfrm_lookup_route+0x3c/0x1c0 net/xfrm/xfrm_policy.c:3347 vti_xmit net/ipv4/ip_vti.c:217 [inline] vti_tunnel_xmit+0x48e/0x18f0 net/ipv4/ip_vti.c:307 __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_e16758452f539c38+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+0xe02/0x1ea0 net/bpf/test_run.c:1164 bpf_prog_test_run+0x2c7/0x340 kernel/bpf/syscall.c:4714 __sys_bpf+0x643/0x950 kernel/bpf/syscall.c:6236 __do_sys_bpf kernel/bpf/syscall.c:6331 [inline] __se_sys_bpf kernel/bpf/syscall.c:6329 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6329 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:0x7fe30af9acb9 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:00007fffa3d1a918 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fe30b215fa0 RCX: 00007fe30af9acb9 RDX: 000000000000002c RSI: 0000200000000080 RDI: 000000000000000a RBP: 00007fe30b008bf7 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe30b215fac R14: 00007fe30b215fa0 R15: 00007fe30b215fa0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:xfrm_lookup_with_ifid+0xe1/0x1af0 net/xfrm/xfrm_policy.c:3181 Code: 24 20 4d 8d 66 08 4c 89 e0 48 c1 e8 03 4d 89 ee 42 80 3c 28 00 74 08 4c 89 e7 e8 ba 20 17 f8 4d 8b 24 24 4c 89 e0 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 94 17 00 00 41 0f b7 04 24 89 44 24 28 RSP: 0018:ffffc90003e96fe0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffc90003e97080 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc90003e97090 RBP: ffffc90003e970f8 R08: ffffc90003e9708f R09: 0000000000000000 R10: ffffc90003e97080 R11: fffff520007d2e12 R12: 0000000000000000 R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000000000 FS: 000055558c0ab500(0000) GS:ffff88818e328000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30363fff CR3: 00000001b9fc8000 CR4: 00000000000006f0 ---------------- Code disassembly (best guess): 0: 24 20 and $0x20,%al 2: 4d 8d 66 08 lea 0x8(%r14),%r12 6: 4c 89 e0 mov %r12,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 4d 89 ee mov %r13,%r14 10: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 15: 74 08 je 0x1f 17: 4c 89 e7 mov %r12,%rdi 1a: e8 ba 20 17 f8 call 0xf81720d9 1f: 4d 8b 24 24 mov (%r12),%r12 23: 4c 89 e0 mov %r12,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 94 17 00 00 jne 0x17cb 37: 41 0f b7 04 24 movzwl (%r12),%eax 3c: 89 44 24 28 mov %eax,0x28(%rsp)