syzbot


KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (2)

Status: auto-closed as invalid on 2020/09/23 05:35
Subsystems: net
[Documentation on labels]
First crash: 1746d, last: 1704d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit net 36 1782d 2005d 0/28 auto-closed as invalid on 2020/07/07 06:22
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (4) net 2 1136d 1139d 0/28 auto-closed as invalid on 2022/04/13 23:14
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (5) net 1 1014d 1014d 0/28 auto-closed as invalid on 2022/08/14 03:33
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (3) net 1 1202d 1202d 0/28 auto-closed as invalid on 2022/02/07 05:08

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit

write to 0xffff8880a1304130 of 8 bytes by task 10040 on cpu 0:
 ipip_tunnel_xmit+0x1b4/0x2c0 net/ipv4/ipip.c:311
 __netdev_start_xmit include/linux/netdevice.h:4634 [inline]
 netdev_start_xmit include/linux/netdevice.h:4648 [inline]
 xmit_one+0xc0/0x310 net/core/dev.c:3561
 dev_hard_start_xmit net/core/dev.c:3577 [inline]
 __dev_queue_xmit+0xf00/0x15a0 net/core/dev.c:4136
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4169
 neigh_connected_output+0x24f/0x280 net/core/neighbour.c:1518
 neigh_output include/net/neighbour.h:509 [inline]
 ip6_finish_output2+0x97f/0xb20 net/ipv6/ip6_output.c:117
 __ip6_finish_output+0x302/0x330 net/ipv6/ip6_output.c:143
 ip6_finish_output+0x39/0x160 net/ipv6/ip6_output.c:153
 NF_HOOK_COND include/linux/netfilter.h:290 [inline]
 ip6_output+0x10e/0x210 net/ipv6/ip6_output.c:176
 dst_output include/net/dst.h:443 [inline]
 ip6_local_out+0x60/0x80 net/ipv6/output_core.c:179
 ip6_send_skb+0x43/0xf0 net/ipv6/ip6_output.c:1867
 udp_v6_send_skb+0x7a3/0xa00 net/ipv6/udp.c:1233
 udpv6_sendmsg+0x1529/0x1780 net/ipv6/udp.c:1531
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:638
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg net/socket.c:671 [inline]
 ____sys_sendmsg+0x360/0x4d0 net/socket.c:2353
 ___sys_sendmsg net/socket.c:2407 [inline]
 __sys_sendmmsg+0x322/0x4b0 net/socket.c:2497
 __do_sys_sendmmsg net/socket.c:2526 [inline]
 __se_sys_sendmmsg net/socket.c:2523 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2523
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880a1304130 of 8 bytes by task 10045 on cpu 1:
 ipip_tunnel_xmit+0x1a2/0x2c0 net/ipv4/ipip.c:311
 __netdev_start_xmit include/linux/netdevice.h:4634 [inline]
 netdev_start_xmit include/linux/netdevice.h:4648 [inline]
 xmit_one+0xc0/0x310 net/core/dev.c:3561
 dev_hard_start_xmit net/core/dev.c:3577 [inline]
 __dev_queue_xmit+0xf00/0x15a0 net/core/dev.c:4136
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4169
 neigh_connected_output+0x24f/0x280 net/core/neighbour.c:1518
 neigh_output include/net/neighbour.h:509 [inline]
 ip6_finish_output2+0x97f/0xb20 net/ipv6/ip6_output.c:117
 __ip6_finish_output+0x302/0x330 net/ipv6/ip6_output.c:143
 ip6_finish_output+0x39/0x160 net/ipv6/ip6_output.c:153
 NF_HOOK_COND include/linux/netfilter.h:290 [inline]
 ip6_output+0x10e/0x210 net/ipv6/ip6_output.c:176
 dst_output include/net/dst.h:443 [inline]
 ip6_local_out+0x60/0x80 net/ipv6/output_core.c:179
 ip6_send_skb+0x43/0xf0 net/ipv6/ip6_output.c:1867
 udp_v6_send_skb+0x7a3/0xa00 net/ipv6/udp.c:1233
 udpv6_sendmsg+0x1529/0x1780 net/ipv6/udp.c:1531
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:638
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg net/socket.c:671 [inline]
 ____sys_sendmsg+0x360/0x4d0 net/socket.c:2353
 ___sys_sendmsg net/socket.c:2407 [inline]
 __sys_sendmmsg+0x322/0x4b0 net/socket.c:2497
 __do_sys_sendmmsg net/socket.c:2526 [inline]
 __se_sys_sendmmsg net/socket.c:2523 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2523
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10045 Comm: syz-executor.0 Not tainted 5.9.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/19 05:32 upstream 18445bf405cb e1c29030 .config console log report ci2-upstream-kcsan-gce
2020/07/24 19:13 upstream f37e99aca03f 554af388 .config console log report ci2-upstream-kcsan-gce
2020/07/08 03:27 upstream aa27b32b76d0 08fc4ef1 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.