syzbot


general protection fault in xfrm_lookup_with_ifid

Status: auto-closed as invalid on 2019/10/11 05:00
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+2a7531cd068ddc9932f9@syzkaller.appspotmail.com
First crash: 1872d, last: 1837d
Discussions (3)
Title Replies (including bot) Last reply
Reminder: 26 open syzbot bugs in "net/xfrm" subsystem 1 (1) 2019/07/24 01:42
Reminder: 27 open syzbot bugs in "net/xfrm" subsystem 1 (1) 2019/06/25 05:51
general protection fault in xfrm_lookup_with_ifid 0 (1) 2019/03/11 06:17

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 15258 Comm: syz-executor.3 Not tainted 5.1.0-rc4+ #165
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:xfrm_lookup_with_ifid+0xf0/0x1ce0 net/xfrm/xfrm_policy.c:3027
Code: c1 e8 03 42 80 3c 28 00 0f 85 d3 19 00 00 48 8b 85 f0 fe ff ff 4c 8b 68 08 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 01 0f 8e 99 15 00 00 41 0f b7 45 00 4d
RSP: 0018:ffff8880ae807400 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff88809125a040
RDX: 0000000000000000 RSI: ffffffff8607b22a RDI: ffff88808dbc8100
RBP: ffff8880ae807550 R08: 0000000000000006 R09: 0000000000000000
R10: ffffed1015d05bc7 R11: 0000000000000000 R12: ffff88809125a040
R13: 0000000000000000 R14: ffff8880959a505c R15: ffff8880ae807528
FS:  00007fc57af79700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000673fb000 CR4: 00000000001406f0
Call Trace:
 <IRQ>
 xfrm_lookup net/xfrm/xfrm_policy.c:3175 [inline]
 xfrm_lookup_route+0x3b/0x1f0 net/xfrm/xfrm_policy.c:3186
 ip6_dst_lookup_flow+0x189/0x220 net/ipv6/ip6_output.c:1100
 cookie_v6_check+0x10b1/0x20e0 net/ipv6/syncookies.c:243
 tcp_v6_cookie_check net/ipv6/tcp_ipv6.c:1030 [inline]
 tcp_v6_do_rcv+0x10dd/0x13c0 net/ipv6/tcp_ipv6.c:1338
 tcp_v6_rcv+0x2d2c/0x3530 net/ipv6/tcp_ipv6.c:1547
 ip6_protocol_deliver_rcu+0x303/0x16c0 net/ipv6/ip6_input.c:394
 ip6_input_finish+0x84/0x170 net/ipv6/ip6_input.c:434
 NF_HOOK include/linux/netfilter.h:289 [inline]
 NF_HOOK include/linux/netfilter.h:283 [inline]
 ip6_input+0xe4/0x3f0 net/ipv6/ip6_input.c:443
 dst_input include/net/dst.h:450 [inline]
 ip6_rcv_finish+0x1e7/0x320 net/ipv6/ip6_input.c:76
 NF_HOOK include/linux/netfilter.h:289 [inline]
 NF_HOOK include/linux/netfilter.h:283 [inline]
 ipv6_rcv+0x10e/0x420 net/ipv6/ip6_input.c:272
 __netif_receive_skb_one_core+0x115/0x1a0 net/core/dev.c:4987
 __netif_receive_skb+0x2c/0x1c0 net/core/dev.c:5099
 process_backlog+0x206/0x750 net/core/dev.c:5939
 napi_poll net/core/dev.c:6362 [inline]
 net_rx_action+0x4fa/0x1070 net/core/dev.c:6428
 __do_softirq+0x266/0x95a kernel/softirq.c:293
 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1027
 </IRQ>
 do_softirq.part.0+0x11a/0x170 kernel/softirq.c:338
 do_softirq kernel/softirq.c:330 [inline]
 __local_bh_enable_ip+0x211/0x270 kernel/softirq.c:190
 local_bh_enable include/linux/bottom_half.h:32 [inline]
 rcu_read_unlock_bh include/linux/rcupdate.h:684 [inline]
 ip6_finish_output2+0xbcf/0x2550 net/ipv6/ip6_output.c:121
 ip6_finish_output+0x577/0xc30 net/ipv6/ip6_output.c:154
 NF_HOOK_COND include/linux/netfilter.h:278 [inline]
 ip6_output+0x235/0x7f0 net/ipv6/ip6_output.c:171
 dst_output include/net/dst.h:444 [inline]
 NF_HOOK include/linux/netfilter.h:289 [inline]
 NF_HOOK include/linux/netfilter.h:283 [inline]
 ip6_xmit+0xe41/0x20c0 net/ipv6/ip6_output.c:275
 inet6_csk_xmit+0x2fb/0x5d0 net/ipv6/inet6_connection_sock.c:139
 __tcp_transmit_skb+0x1a32/0x3750 net/ipv4/tcp_output.c:1159
 tcp_transmit_skb net/ipv4/tcp_output.c:1175 [inline]
 tcp_write_xmit+0xe83/0x5310 net/ipv4/tcp_output.c:2400
 __tcp_push_pending_frames+0xb4/0x350 net/ipv4/tcp_output.c:2576
 tcp_push+0x4cd/0x6c0 net/ipv4/tcp.c:735
 do_tcp_sendpages+0x15c2/0x1b80 net/ipv4/tcp.c:1058
 tls_push_sg+0x1de/0x680 net/tls/tls_main.c:122
 tls_tx_records+0x3c8/0x760 net/tls/tls_sw.c:392
 tls_push_record+0x1e88/0x33f0 net/tls/tls_sw.c:735
 bpf_exec_tx_verdict+0xe30/0x1280 net/tls/tls_sw.c:755
 tls_sw_sendmsg+0x107c/0x17b0 net/tls/tls_sw.c:965
 inet_sendmsg+0x147/0x5d0 net/ipv4/af_inet.c:798
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xdd/0x130 net/socket.c:661
 sock_write_iter+0x27c/0x3e0 net/socket.c:988
 call_write_iter include/linux/fs.h:1866 [inline]
 new_sync_write+0x4c7/0x760 fs/read_write.c:474
 __vfs_write+0xe4/0x110 fs/read_write.c:487
 vfs_write+0x20c/0x580 fs/read_write.c:549
 ksys_write+0x14f/0x2d0 fs/read_write.c:599
 __do_sys_write fs/read_write.c:611 [inline]
 __se_sys_write fs/read_write.c:608 [inline]
 __x64_sys_write+0x73/0xb0 fs/read_write.c:608
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x458c29
Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fc57af78c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458c29
RDX: 00000000000006e2 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc57af796d4
R13: 00000000004c8623 R14: 00000000004ded68 R15: 00000000ffffffff
Modules linked in:
---[ end trace de5b647e8345394f ]---
RIP: 0010:xfrm_lookup_with_ifid+0xf0/0x1ce0 net/xfrm/xfrm_policy.c:3027
Code: c1 e8 03 42 80 3c 28 00 0f 85 d3 19 00 00 48 8b 85 f0 fe ff ff 4c 8b 68 08 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 01 0f 8e 99 15 00 00 41 0f b7 45 00 4d
RSP: 0018:ffff8880ae807400 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff88809125a040
RDX: 0000000000000000 RSI: ffffffff8607b22a RDI: ffff88808dbc8100
RBP: ffff8880ae807550 R08: 0000000000000006 R09: 0000000000000000
R10: ffffed1015d05bc7 R11: 0000000000000000 R12: ffff88809125a040
R13: 0000000000000000 R14: ffff8880959a505c R15: ffff8880ae807528
FS:  00007fc57af79700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000673fb000 CR4: 00000000001406f0

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/04/14 04:59 net-old ed0de45a1008 c402d8f1 .config console log report ci-upstream-net-this-kasan-gce
2019/03/10 01:26 net-next-old d9862cfbe209 12365b99 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.