syzbot


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

Status: auto-closed as invalid on 2022/02/07 05:08
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 334d, last: 334d
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 914d 1137d 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 268d 271d 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 836d 878d 0/24 auto-closed as invalid on 2020/09/23 05:35
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (5) 1 146d 146d 0/24 auto-closed as invalid on 2022/08/14 03:33

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

read to 0xffff88812ed20150 of 8 bytes by task 2107 on cpu 0:
 ipip_tunnel_xmit+0x1a2/0x2c0 net/ipv4/ipip.c:313
 __netdev_start_xmit include/linux/netdevice.h:4994 [inline]
 netdev_start_xmit include/linux/netdevice.h:5008 [inline]
 xmit_one+0x105/0x2f0 net/core/dev.c:3590
 dev_hard_start_xmit net/core/dev.c:3606 [inline]
 __dev_queue_xmit+0x869/0xf70 net/core/dev.c:4229
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4262
 neigh_connected_output+0x264/0x290 net/core/neighbour.c:1551
 neigh_output include/net/neighbour.h:527 [inline]
 ip6_finish_output2+0x9be/0xbb0 net/ipv6/ip6_output.c:126
 __ip6_finish_output net/ipv6/ip6_output.c:191 [inline]
 ip6_finish_output+0x444/0x4c0 net/ipv6/ip6_output.c:201
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip6_output+0x10e/0x210 net/ipv6/ip6_output.c:224
 dst_output include/net/dst.h:450 [inline]
 ip6_local_out+0x60/0x80 net/ipv6/output_core.c:161
 ip6_send_skb+0x43/0xf0 net/ipv6/ip6_output.c:1912
 udp_v6_send_skb+0x6d6/0xa10 net/ipv6/udp.c:1249
 udpv6_sendmsg+0x1669/0x16e0 net/ipv6/udp.c:1547
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:644
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0x39a/0x510 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmmsg+0x267/0x4c0 net/socket.c:2549
 __do_sys_sendmmsg net/socket.c:2578 [inline]
 __se_sys_sendmmsg net/socket.c:2575 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2575
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

write to 0xffff88812ed20150 of 8 bytes by task 2052 on cpu 1:
 ipip_tunnel_xmit+0x1b4/0x2c0 net/ipv4/ipip.c:313
 __netdev_start_xmit include/linux/netdevice.h:4994 [inline]
 netdev_start_xmit include/linux/netdevice.h:5008 [inline]
 xmit_one+0x105/0x2f0 net/core/dev.c:3590
 dev_hard_start_xmit net/core/dev.c:3606 [inline]
 __dev_queue_xmit+0x869/0xf70 net/core/dev.c:4229
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4262
 neigh_connected_output+0x264/0x290 net/core/neighbour.c:1551
 neigh_output include/net/neighbour.h:527 [inline]
 ip6_finish_output2+0x9be/0xbb0 net/ipv6/ip6_output.c:126
 __ip6_finish_output net/ipv6/ip6_output.c:191 [inline]
 ip6_finish_output+0x444/0x4c0 net/ipv6/ip6_output.c:201
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip6_output+0x10e/0x210 net/ipv6/ip6_output.c:224
 dst_output include/net/dst.h:450 [inline]
 ip6_local_out+0x60/0x80 net/ipv6/output_core.c:161
 ip6_send_skb+0x43/0xf0 net/ipv6/ip6_output.c:1912
 udp_v6_send_skb+0x6d6/0xa10 net/ipv6/udp.c:1249
 udpv6_sendmsg+0x1669/0x16e0 net/ipv6/udp.c:1547
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:644
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0x39a/0x510 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmmsg+0x267/0x4c0 net/socket.c:2549
 __do_sys_sendmmsg net/socket.c:2578 [inline]
 __se_sys_sendmmsg net/socket.c:2575 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2575
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000d08 -> 0x0000000000000d09

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2052 Comm: syz-executor.0 Not tainted 5.16.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
syz-executor.0 (2052) used greatest stack depth: 10608 bytes left

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/01/03 05:00 upstream 1286cc4893cf e1768e9c .config log report info KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit
* Struck through repros no longer work on HEAD.