general protection fault, probably for non-canonical address 0xdffffc00000000c9: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000648-0x000000000000064f]
CPU: 1 PID: 24798 Comm: syz-executor.3 Not tainted 6.0.0-syzkaller-09413-g4899a36f91a9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:rt6_probe net/ipv6/route.c:653 [inline]
RIP: 0010:find_match.part.0+0x7d4/0xd00 net/ipv6/route.c:755
Code: 4c 17 24 01 e9 1e fd ff ff e8 e8 02 61 f9 48 8b 45 a8 48 8d b8 48 06 00 00 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 61 04 00 00 48 8b 45 a8 48 c7
RSP: 0018:ffffc900031af0b0 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff8880416a0e20 RCX: ffffc9000ce43000
RDX: 00000000000000c9 RSI: ffffffff881a4448 RDI: 0000000000000648
RBP: ffffc900031af120 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 000000000008c07c R12: 0000000000000001
R13: 0000000000000008 R14: 0000000000000000 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8880b9b00000(0063) knlGS:00000000f7facb40
CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00000000f6e72000 CR3: 0000000090f2a000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
find_match net/ipv6/route.c:781 [inline]
rt6_nh_find_match+0x15c/0x210 net/ipv6/route.c:781
nexthop_for_each_fib6_nh+0x261/0x430 net/ipv4/nexthop.c:1248
__find_rr_leaf+0x68b/0xd20 net/ipv6/route.c:822
find_rr_leaf net/ipv6/route.c:850 [inline]
rt6_select net/ipv6/route.c:894 [inline]
fib6_table_lookup+0x5ee/0x9c0 net/ipv6/route.c:2182
ip6_pol_route+0x1c5/0x1190 net/ipv6/route.c:2218
pol_lookup_func include/net/ip6_fib.h:582 [inline]
fib6_rule_lookup+0x52a/0x6f0 net/ipv6/fib6_rules.c:121
ip6_route_input_lookup net/ipv6/route.c:2287 [inline]
ip6_route_input+0x619/0xb90 net/ipv6/route.c:2583
ip6_rcv_finish_core.constprop.0+0x1a4/0x5d0 net/ipv6/ip6_input.c:66
ip6_rcv_finish net/ipv6/ip6_input.c:77 [inline]
NF_HOOK include/linux/netfilter.h:302 [inline]
NF_HOOK include/linux/netfilter.h:296 [inline]
ipv6_rcv+0x1e5/0x380 net/ipv6/ip6_input.c:309
__netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5485
__netif_receive_skb+0x1f/0x1c0 net/core/dev.c:5599
netif_receive_skb_internal net/core/dev.c:5685 [inline]
netif_receive_skb+0x12f/0x8d0 net/core/dev.c:5744
tun_rx_batched+0x4ab/0x7a0 drivers/net/tun.c:1544
tun_get_user+0x2686/0x3a00 drivers/net/tun.c:1995
tun_chr_write_iter+0xdb/0x200 drivers/net/tun.c:2025
call_write_iter include/linux/fs.h:2190 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x9e9/0xdd0 fs/read_write.c:584
ksys_write+0x127/0x250 fs/read_write.c:637
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7fb1549
Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000f7fac590 EFLAGS: 00000282 ORIG_RAX: 0000000000000004
RAX: ffffffffffffffda RBX: 00000000000000c8 RCX: 0000000020000080
RDX: 000000000000015a RSI: 00000000f6f4a000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:rt6_probe net/ipv6/route.c:653 [inline]
RIP: 0010:find_match.part.0+0x7d4/0xd00 net/ipv6/route.c:755
Code: 4c 17 24 01 e9 1e fd ff ff e8 e8 02 61 f9 48 8b 45 a8 48 8d b8 48 06 00 00 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 61 04 00 00 48 8b 45 a8 48 c7
RSP: 0018:ffffc900031af0b0 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff8880416a0e20 RCX: ffffc9000ce43000
RDX: 00000000000000c9 RSI: ffffffff881a4448 RDI: 0000000000000648
RBP: ffffc900031af120 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 000000000008c07c R12: 0000000000000001
R13: 0000000000000008 R14: 0000000000000000 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8880b9b00000(0063) knlGS:00000000f7facb40
CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00000000f6e72000 CR3: 0000000090f2a000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 4c 17 rex.WR (bad)
2: 24 01 and $0x1,%al
4: e9 1e fd ff ff jmpq 0xfffffd27
9: e8 e8 02 61 f9 callq 0xf96102f6
e: 48 8b 45 a8 mov -0x58(%rbp),%rax
12: 48 8d b8 48 06 00 00 lea 0x648(%rax),%rdi
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 61 04 00 00 jle 0x49b
3a: 48 8b 45 a8 mov -0x58(%rbp),%rax
3e: 48 rex.W
3f: c7 .byte 0xc7