syzbot


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

Status: auto-closed as invalid on 2022/08/14 03:33
Subsystems: net
[Documentation on labels]
First crash: 656d, last: 656d
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 1424d 1647d 0/26 auto-closed as invalid on 2020/07/07 06:22
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (4) net 2 779d 781d 0/26 auto-closed as invalid on 2022/04/13 23:14
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (2) net 3 1346d 1388d 0/26 auto-closed as invalid on 2020/09/23 05:35
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (3) net 1 844d 844d 0/26 auto-closed as invalid on 2022/02/07 05:08

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

read-write to 0xffff888136d46158 of 8 bytes by task 29271 on cpu 1:
 ipip_tunnel_xmit+0x1af/0x2b0 net/ipv4/ipip.c:313
 __netdev_start_xmit include/linux/netdevice.h:4805 [inline]
 netdev_start_xmit include/linux/netdevice.h:4819 [inline]
 xmit_one+0xc0/0x2a0 net/core/dev.c:3590
 dev_hard_start_xmit+0x72/0x120 net/core/dev.c:3606
 __dev_queue_xmit+0x84c/0xfe0 net/core/dev.c:4255
 dev_queue_xmit include/linux/netdevice.h:2994 [inline]
 neigh_connected_output+0x266/0x2a0 net/core/neighbour.c:1557
 neigh_output include/net/neighbour.h:549 [inline]
 ip6_finish_output2+0xa12/0xc30 net/ipv6/ip6_output.c:134
 __ip6_finish_output net/ipv6/ip6_output.c:195 [inline]
 ip6_finish_output+0x395/0x4f0 net/ipv6/ip6_output.c:206
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip6_output+0x10e/0x210 net/ipv6/ip6_output.c:227
 dst_output include/net/dst.h:451 [inline]
 ip6_local_out+0x60/0x80 net/ipv6/output_core.c:161
 ip6_send_skb+0x43/0xf0 net/ipv6/ip6_output.c:1947
 udp_v6_send_skb+0x79a/0x9f0 net/ipv6/udp.c:1259
 udpv6_sendmsg+0x1297/0x14a0 net/ipv6/udp.c:1551
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:652
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0x38f/0x500 net/socket.c:2488
 ___sys_sendmsg net/socket.c:2542 [inline]
 __sys_sendmmsg+0x5c3/0x6a0 net/socket.c:2628
 __do_sys_sendmmsg net/socket.c:2657 [inline]
 __se_sys_sendmmsg net/socket.c:2654 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2654
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

read-write to 0xffff888136d46158 of 8 bytes by task 29270 on cpu 0:
 ipip_tunnel_xmit+0x1af/0x2b0 net/ipv4/ipip.c:313
 __netdev_start_xmit include/linux/netdevice.h:4805 [inline]
 netdev_start_xmit include/linux/netdevice.h:4819 [inline]
 xmit_one+0xc0/0x2a0 net/core/dev.c:3590
 dev_hard_start_xmit+0x72/0x120 net/core/dev.c:3606
 __dev_queue_xmit+0x84c/0xfe0 net/core/dev.c:4255
 dev_queue_xmit include/linux/netdevice.h:2994 [inline]
 neigh_connected_output+0x266/0x2a0 net/core/neighbour.c:1557
 neigh_output include/net/neighbour.h:549 [inline]
 ip6_finish_output2+0xa12/0xc30 net/ipv6/ip6_output.c:134
 __ip6_finish_output net/ipv6/ip6_output.c:195 [inline]
 ip6_finish_output+0x395/0x4f0 net/ipv6/ip6_output.c:206
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip6_output+0x10e/0x210 net/ipv6/ip6_output.c:227
 dst_output include/net/dst.h:451 [inline]
 ip6_local_out+0x60/0x80 net/ipv6/output_core.c:161
 ip6_send_skb+0x43/0xf0 net/ipv6/ip6_output.c:1947
 udp_v6_send_skb+0x79a/0x9f0 net/ipv6/udp.c:1259
 udpv6_sendmsg+0x1297/0x14a0 net/ipv6/udp.c:1551
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:652
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0x38f/0x500 net/socket.c:2488
 ___sys_sendmsg net/socket.c:2542 [inline]
 __sys_sendmmsg+0x5c3/0x6a0 net/socket.c:2628
 __do_sys_sendmmsg net/socket.c:2657 [inline]
 __se_sys_sendmmsg net/socket.c:2654 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2654
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

value changed: 0x00000000000035e1 -> 0x00000000000035e3

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 29270 Comm: syz-executor.2 Not tainted 5.19.0-rc5-syzkaller-00233-gb1c428b6c368-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/10 03:31 upstream b1c428b6c368 b5765a15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit
* Struck through repros no longer work on HEAD.