Oops: general protection fault, probably for non-canonical address 0xdffffc0000000013: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000098-0x000000000000009f]
CPU: 0 PID: 1148 Comm: kworker/0:3 Not tainted 6.10.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Workqueue: wg-crypt-wg2 wg_packet_decrypt_worker
RIP: 0010:rt6_get_pcpu_route net/ipv6/route.c:1407 [inline]
RIP: 0010:ip6_pol_route+0x3bc/0x1150 net/ipv6/route.c:2262
Code: f7 48 85 ed 0f 84 52 03 00 00 e8 4f 16 fc f7 48 8d bd 98 00 00 00 49 89 ec 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 a3 08 00 00 8b 85 98 00 00 00
RSP: 0018:ffffc900000072e8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880120d1cc0 RCX: ffffffff8991be93
RDX: 0000000000000013 RSI: ffffffff8991bea1 RDI: 000000000000009b
RBP: 0000000000000003 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000003 R12: 0000000000000003
R13: 1ffff92000000e61 R14: 0000000000000080 R15: ffffc90000007368
FS: 0000000000000000(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efe3e408108 CR3: 0000000061fc2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
pol_lookup_func include/net/ip6_fib.h:616 [inline]
fib6_rule_lookup+0x536/0x720 net/ipv6/fib6_rules.c:116
ip6_route_input_lookup net/ipv6/route.c:2298 [inline]
ip6_route_input+0x663/0xc10 net/ipv6/route.c:2594
ip6_rcv_finish_core.constprop.0+0x1a0/0x5d0 net/ipv6/ip6_input.c:66
ip6_list_rcv_finish.constprop.0+0x213/0xb50 net/ipv6/ip6_input.c:131
ip6_sublist_rcv net/ipv6/ip6_input.c:320 [inline]
ipv6_list_rcv+0x33d/0x450 net/ipv6/ip6_input.c:355
__netif_receive_skb_list_ptype net/core/dev.c:5667 [inline]
__netif_receive_skb_list_core+0x558/0x950 net/core/dev.c:5715
__netif_receive_skb_list net/core/dev.c:5767 [inline]
netif_receive_skb_list_internal+0x753/0xda0 net/core/dev.c:5859
gro_normal_list include/net/gro.h:515 [inline]
gro_normal_list include/net/gro.h:511 [inline]
napi_complete_done+0x23f/0x9a0 net/core/dev.c:6202
wg_packet_rx_poll+0xd57/0x21d0 drivers/net/wireguard/receive.c:488
__napi_poll.constprop.0+0xb7/0x550 net/core/dev.c:6721
napi_poll net/core/dev.c:6790 [inline]
net_rx_action+0x9b6/0xf10 net/core/dev.c:6906
handle_softirqs+0x216/0x8f0 kernel/softirq.c:554
do_softirq kernel/softirq.c:455 [inline]
do_softirq+0xb2/0xf0 kernel/softirq.c:442
__local_bh_enable_ip+0x100/0x120 kernel/softirq.c:382
spin_unlock_bh include/linux/spinlock.h:396 [inline]
ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline]
wg_packet_decrypt_worker+0x35d/0x530 drivers/net/wireguard/receive.c:499
process_one_work+0x9fb/0x1b60 kernel/workqueue.c:3231
process_scheduled_works kernel/workqueue.c:3312 [inline]
worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393
kthread+0x2c1/0x3a0 kernel/kthread.c:389
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:rt6_get_pcpu_route net/ipv6/route.c:1407 [inline]
RIP: 0010:ip6_pol_route+0x3bc/0x1150 net/ipv6/route.c:2262
Code: f7 48 85 ed 0f 84 52 03 00 00 e8 4f 16 fc f7 48 8d bd 98 00 00 00 49 89 ec 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 a3 08 00 00 8b 85 98 00 00 00
RSP: 0018:ffffc900000072e8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880120d1cc0 RCX: ffffffff8991be93
RDX: 0000000000000013 RSI: ffffffff8991bea1 RDI: 000000000000009b
RBP: 0000000000000003 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000003 R12: 0000000000000003
R13: 1ffff92000000e61 R14: 0000000000000080 R15: ffffc90000007368
FS: 0000000000000000(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efe3e408108 CR3: 0000000061fc2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: f7 48 85 ed 0f 84 52 testl $0x52840fed,-0x7b(%rax)
7: 03 00 add (%rax),%eax
9: 00 e8 add %ch,%al
b: 4f 16 rex.WRXB (bad)
d: fc cld
e: f7 48 8d bd 98 00 00 testl $0x98bd,-0x73(%rax)
15: 00 49 89 add %cl,-0x77(%rcx)
18: ec in (%dx),%al
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 a3 08 00 00 jle 0x8dd
3a: 8b 85 98 00 00 00 mov 0x98(%rbp),%eax