Oops: general protection fault, probably for non-canonical address 0xdffffc000000001b: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x00000000000000d8-0x00000000000000df] CPU: 1 UID: 0 PID: 5976 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:percpu_counter_add_batch+0x3e/0x1d0 lib/percpu_counter.c:98 Code: d4 49 89 f5 48 89 fb 49 bf 00 00 00 00 00 fc ff df e8 e6 76 f2 fc 48 89 5c 24 10 4c 8d 73 58 4c 89 f0 48 c1 e8 03 48 89 04 24 <42> 80 3c 38 00 74 08 4c 89 f7 e8 d3 2c 5a fd 49 8b 06 65 8b 28 41 RSP: 0018:ffffc90003b37778 EFLAGS: 00010206 RAX: 000000000000001b RBX: 0000000000000080 RCX: ffff888115b8ba80 RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000080 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52000766ee4 R12: 0000000000000020 R13: ffffffffffffffff R14: 00000000000000d8 R15: dffffc0000000000 FS: 000055555baf2500(0000) GS:ffff8882a9928000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc74af2e38 CR3: 0000000115cec000 CR4: 00000000000006f0 Call Trace: dst_entries_add include/net/dst_ops.h:59 [inline] dst_count_dec net/core/dst.c:162 [inline] dst_release+0x126/0x1b0 net/core/dst.c:176 refdst_drop include/net/dst.h:266 [inline] skb_dst_drop include/net/dst.h:278 [inline] ____bpf_skb_set_tunnel_key net/core/filter.c:4867 [inline] bpf_skb_set_tunnel_key+0x239/0xa30 net/core/filter.c:4835 bpf_prog_adb554717e5d6596+0x4f/0x5c 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:0x7fca1679acb9 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:00007ffdef1739c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fca16a15fa0 RCX: 00007fca1679acb9 RDX: 0000000000000050 RSI: 0000200000000d80 RDI: 000000000000000a RBP: 00007fca16808bf7 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fca16a15fac R14: 00007fca16a15fa0 R15: 00007fca16a15fa0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:percpu_counter_add_batch+0x3e/0x1d0 lib/percpu_counter.c:98 Code: d4 49 89 f5 48 89 fb 49 bf 00 00 00 00 00 fc ff df e8 e6 76 f2 fc 48 89 5c 24 10 4c 8d 73 58 4c 89 f0 48 c1 e8 03 48 89 04 24 <42> 80 3c 38 00 74 08 4c 89 f7 e8 d3 2c 5a fd 49 8b 06 65 8b 28 41 RSP: 0018:ffffc90003b37778 EFLAGS: 00010206 RAX: 000000000000001b RBX: 0000000000000080 RCX: ffff888115b8ba80 RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000080 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52000766ee4 R12: 0000000000000020 R13: ffffffffffffffff R14: 00000000000000d8 R15: dffffc0000000000 FS: 000055555baf2500(0000) GS:ffff8882a9928000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc74af2e38 CR3: 0000000115cec000 CR4: 00000000000006f0 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 49 89 f5 mov %rsi,%r13 3: 48 89 fb mov %rdi,%rbx 6: 49 bf 00 00 00 00 00 movabs $0xdffffc0000000000,%r15 d: fc ff df 10: e8 e6 76 f2 fc call 0xfcf276fb 15: 48 89 5c 24 10 mov %rbx,0x10(%rsp) 1a: 4c 8d 73 58 lea 0x58(%rbx),%r14 1e: 4c 89 f0 mov %r14,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 48 89 04 24 mov %rax,(%rsp) * 29: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 4c 89 f7 mov %r14,%rdi 33: e8 d3 2c 5a fd call 0xfd5a2d0b 38: 49 8b 06 mov (%r14),%rax 3b: 65 8b 28 mov %gs:(%rax),%ebp 3e: 41 rex.B