syzbot


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

Status: auto-closed as invalid on 2022/08/14 03:33
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 139d, last: 139d
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 36 907d 1130d 0/24 auto-closed as invalid on 2020/07/07 06:22
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (4) 2 261d 264d 0/24 auto-closed as invalid on 2022/04/13 23:14
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (2) 3 829d 871d 0/24 auto-closed as invalid on 2020/09/23 05:35
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (3) 1 327d 327d 0/24 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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/07/10 03:31 upstream b1c428b6c368 b5765a15 .config log report info KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit
* Struck through repros no longer work on HEAD.