syzbot


KCSAN: data-race in ip_tunnel_xmit / sit_tunnel_xmit (2)

Status: auto-closed as invalid on 2021/12/04 10:27
Subsystems: net
[Documentation on labels]
First crash: 908d, last: 908d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ip_tunnel_xmit / sit_tunnel_xmit net 1 1053d 1053d 0/26 auto-closed as invalid on 2021/07/12 14:38

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

write to 0xffff88812dd5d150 of 8 bytes by task 3630 on cpu 1:
 sit_tunnel_xmit+0x9f7/0x1200
 __netdev_start_xmit include/linux/netdevice.h:4988 [inline]
 netdev_start_xmit include/linux/netdevice.h:5002 [inline]
 xmit_one+0xf9/0x270 net/core/dev.c:3582
 dev_hard_start_xmit net/core/dev.c:3598 [inline]
 __dev_queue_xmit+0x6e9/0xaa0 net/core/dev.c:4209
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4242
 neigh_connected_output+0x264/0x290 net/core/neighbour.c:1521
 neigh_output include/net/neighbour.h:510 [inline]
 ip6_finish_output2+0x91e/0xb10 net/ipv6/ip6_output.c:126
 __ip6_finish_output net/ipv6/ip6_output.c:191 [inline]
 ip6_finish_output+0x428/0x480 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+0x121/0x1e0 net/ipv6/output_core.c:161
 ip6_send_skb net/ipv6/ip6_output.c:1912 [inline]
 ip6_push_pending_frames+0xb6/0x170 net/ipv6/ip6_output.c:1932
 rawv6_push_pending_frames net/ipv6/raw.c:613 [inline]
 rawv6_sendmsg+0x131f/0x13f0 net/ipv6/raw.c:956
 inet_sendmsg+0x5f/0x80 net/ipv4/af_inet.c:821
 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+0x388/0x520 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/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812dd5d150 of 8 bytes by task 3625 on cpu 0:
 ip_tunnel_xmit+0x99d/0x11b0 net/ipv4/ip_tunnel.c:819
 sit_tunnel_xmit__ net/ipv6/sit.c:1065 [inline]
 sit_tunnel_xmit+0x3d3/0x1200 net/ipv6/sit.c:1081
 __netdev_start_xmit include/linux/netdevice.h:4988 [inline]
 netdev_start_xmit include/linux/netdevice.h:5002 [inline]
 xmit_one+0xf9/0x270 net/core/dev.c:3582
 dev_hard_start_xmit net/core/dev.c:3598 [inline]
 __dev_queue_xmit+0x6e9/0xaa0 net/core/dev.c:4209
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4242
 neigh_connected_output+0x264/0x290 net/core/neighbour.c:1521
 neigh_output include/net/neighbour.h:510 [inline]
 ip_finish_output2+0x80a/0xaa0 net/ipv4/ip_output.c:221
 ip_finish_output+0x3b5/0x510 net/ipv4/ip_output.c:309
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip_mc_output+0x2a7/0x350 net/ipv4/ip_output.c:408
 dst_output include/net/dst.h:450 [inline]
 ip_local_out+0x164/0x220 net/ipv4/ip_output.c:126
 ip_send_skb+0x27/0x90 net/ipv4/ip_output.c:1555
 udp_send_skb+0x62d/0x860 net/ipv4/udp.c:967
 udp_sendmsg+0x1257/0x1320 net/ipv4/udp.c:1254
 udpv6_sendmsg+0x6a3/0x16e0
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:643
 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+0x388/0x520 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/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000c15 -> 0x0000000000000c16

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/30 10:23 upstream a379fbbcb88b 098b5d53 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ip_tunnel_xmit / sit_tunnel_xmit
* Struck through repros no longer work on HEAD.