xfrm_lookup+0x3b1/0x2860 net/xfrm/xfrm_policy.c:2162
BUG: unable to handle kernel NULL pointer dereference
at 0000000000000000
PGD 1afea5067
P4D 1afea5067
PUD 190a2a067
PMD 0
xfrm_lookup_route+0x39/0x1f0 net/xfrm/xfrm_policy.c:2282
Oops: 0010 [#1] SMP KASAN
ip_route_output_flow+0xb1/0xc0 net/ipv4/route.c:2588
CPU: 1 PID: 11381 Comm: syz-executor1 Not tainted 4.17.0+ #84
ip_route_connect include/net/route.h:310 [inline]
__ip4_datagram_connect+0x6e9/0xff0 net/ipv4/datagram.c:51
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
__ip6_datagram_connect+0xd28/0x1470 net/ipv6/datagram.c:191
RIP: 0010: (null)
Code:
Bad RIP value.
RSP: 0018:ffff88018ff47590 EFLAGS: 00010246
ip6_datagram_connect+0x2f/0x50 net/ipv6/datagram.c:273
RAX: 0000000000000000 RBX: ffff8801a8a00800 RCX: 1ffffffff10ea9fd
RDX: ffff88018ff47ab0 RSI: ffff8801b5ad0940 RDI: ffff8801b10af540
ip6_datagram_connect_v6_only+0x6a/0x90 net/ipv6/datagram.c:285
RBP: ffff88018ff47700 R08: 0000000000000001 R09: 0000000000000000
inet_dgram_connect+0x154/0x2e0 net/ipv4/af_inet.c:571
R10: 0000000000000000 R11: 0000000000000000 R12: 1ffff10031fe8eb7
__sys_connect+0x37d/0x4c0 net/socket.c:1709
R13: ffff88018ff47ab0 R14: ffff8801a8a00812 R15: ffff8801a8a00c58
FS: 00007f3179739700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000001b31d9000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
__do_sys_connect net/socket.c:1720 [inline]
__se_sys_connect net/socket.c:1717 [inline]
__x64_sys_connect+0x73/0xb0 net/socket.c:1717
Call Trace:
do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455b29
sock_poll+0x1d1/0x710 net/socket.c:1168
Code:
1d
ba fb
ff
vfs_poll+0x77/0x2a0 fs/select.c:40
c3
do_pollfd fs/select.c:848 [inline]
do_poll fs/select.c:896 [inline]
do_sys_poll+0x6fd/0x1100 fs/select.c:990
66
2e
0f
1f
84
00
00
00
00
00
66
90
48
89
f8
48
89
f7
48
89
d6 48
89
__do_sys_poll fs/select.c:1048 [inline]
__se_sys_poll fs/select.c:1036 [inline]
__x64_sys_poll+0x189/0x510 fs/select.c:1036
ca
4d
89
do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:290
c2
4d
89
c8
4c
8b
entry_SYSCALL_64_after_hwframe+0x49/0xbe
4c
RIP: 0033:0x455b29
24
Code:
08
1d
0f
ba
05
fb
<48>
ff
3d
c3
01
66
f0
2e
ff
0f
ff
1f
0f
84
83
00
eb
00
b9
00
fb ff
00
c3
00
66
66 90
2e
48
0f 1f
89
84
f8
00
48
00
89
00
f7
00
48
89
RSP: 002b:00007fe321d11c68 EFLAGS: 00000246
d6
ORIG_RAX: 000000000000002a
48
RAX: ffffffffffffffda RBX: 00007fe321d126d4 RCX: 0000000000455b29
RDX: 000000000000001c RSI: 00000000200000c0 RDI: 0000000000000013
89
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
ca
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000016
4d
R13: 00000000004bb945 R14: 00000000004c8660 R15: 0000000000000000
89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f3179738c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000007
RAX: ffffffffffffffda RBX: 00007f31797396d4 RCX: 0000000000455b29
RDX: 00000000000000ec RSI: 0000000000000004 RDI: 0000000020000080
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004c05f4 R14: 00000000004cfde8 R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
(ftrace buffer empty)
CR2: 0000000000000000
---[ end trace 644a6126a6e57fb8 ]---
RIP: 0010: (null)
Code: Bad RIP value.
RSP: 0018:ffff88018ff47590 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8801a8a00800 RCX: 1ffffffff10ea9fd
RDX: ffff88018ff47ab0 RSI: ffff8801b5ad0940 RDI: ffff8801b10af540
RBP: ffff88018ff47700 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 1ffff10031fe8eb7
R13: ffff88018ff47ab0 R14: ffff8801a8a00812 R15: ffff8801a8a00c58
FS: 00007f3179739700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000001b31d9000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400