syzbot


KCSAN: data-race in ip6_tnl_start_xmit / ip6_tnl_start_xmit (4)

Status: auto-closed as invalid on 2021/05/17 09:21
Subsystems: net
[Documentation on labels]
First crash: 1087d, last: 1087d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ip6_tnl_start_xmit / ip6_tnl_start_xmit (6) net 1 748d 748d 0/26 auto-closed as invalid on 2022/04/15 20:54
upstream KCSAN: data-race in ip6_tnl_start_xmit / ip6_tnl_start_xmit (8) net 2 608d 616d 0/26 auto-closed as invalid on 2022/09/02 16:35
upstream KCSAN: data-race in ip6_tnl_start_xmit / ip6_tnl_start_xmit (5) net 9 802d 866d 0/26 auto-closed as invalid on 2022/02/20 15:36
upstream KCSAN: data-race in ip6_tnl_start_xmit / ip6_tnl_start_xmit net 10 1475d 1610d 0/26 auto-closed as invalid on 2020/05/22 23:22
upstream KCSAN: data-race in ip6_tnl_start_xmit / ip6_tnl_start_xmit (2) net 2 1347d 1348d 0/26 auto-closed as invalid on 2020/08/24 20:07
upstream KCSAN: data-race in ip6_tnl_start_xmit / ip6_tnl_start_xmit (3) net 2 1246d 1253d 0/26 auto-closed as invalid on 2020/12/03 02:00
upstream KCSAN: data-race in ip6_tnl_start_xmit / ip6_tnl_start_xmit (7) net 1 688d 688d 0/26 auto-closed as invalid on 2022/06/14 13:17
upstream KCSAN: data-race in ip6_tnl_start_xmit / ip6_tnl_start_xmit (9) net 3 478d 501d 0/26 auto-obsoleted due to no activity on 2023/01/13 04:35

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

write to 0xffff888021308150 of 8 bytes by task 9921 on cpu 0:
 ip6_tnl_start_xmit+0x81e/0xa10 net/ipv6/ip6_tunnel.c:1437
 __netdev_start_xmit include/linux/netdevice.h:4825 [inline]
 netdev_start_xmit include/linux/netdevice.h:4839 [inline]
 xmit_one+0xf9/0x2e0 net/core/dev.c:3605
 dev_hard_start_xmit net/core/dev.c:3621 [inline]
 __dev_queue_xmit+0xf22/0x1580 net/core/dev.c:4194
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4227
 neigh_connected_output+0x264/0x290 net/core/neighbour.c:1520
 neigh_output include/net/neighbour.h:510 [inline]
 ip6_finish_output2+0x985/0xb20 net/ipv6/ip6_output.c:117
 __ip6_finish_output+0x428/0x480 net/ipv6/ip6_output.c:182
 ip6_finish_output+0x39/0x160 net/ipv6/ip6_output.c:192
 NF_HOOK_COND include/linux/netfilter.h:290 [inline]
 ip6_output+0x10e/0x210 net/ipv6/ip6_output.c:215
 dst_output include/net/dst.h:448 [inline]
 ip6_local_out+0x60/0x80 net/ipv6/output_core.c:179
 ip6_send_skb net/ipv6/ip6_output.c:1904 [inline]
 ip6_push_pending_frames+0xb6/0x170 net/ipv6/ip6_output.c:1924
 rawv6_push_pending_frames net/ipv6/raw.c:613 [inline]
 rawv6_sendmsg+0x128c/0x1330 net/ipv6/raw.c:956
 inet_sendmsg+0x5f/0x80 net/ipv4/af_inet.c:821
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg net/socket.c:674 [inline]
 ____sys_sendmsg+0x360/0x4d0 net/socket.c:2350
 ___sys_sendmsg net/socket.c:2404 [inline]
 __sys_sendmmsg+0x315/0x4b0 net/socket.c:2490
 __do_sys_sendmmsg net/socket.c:2519 [inline]
 __se_sys_sendmmsg net/socket.c:2516 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2516
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888021308150 of 8 bytes by task 9930 on cpu 1:
 ip6_tnl_start_xmit+0x80c/0xa10 net/ipv6/ip6_tunnel.c:1437
 __netdev_start_xmit include/linux/netdevice.h:4825 [inline]
 netdev_start_xmit include/linux/netdevice.h:4839 [inline]
 xmit_one+0xf9/0x2e0 net/core/dev.c:3605
 dev_hard_start_xmit net/core/dev.c:3621 [inline]
 __dev_queue_xmit+0xf22/0x1580 net/core/dev.c:4194
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4227
 neigh_connected_output+0x264/0x290 net/core/neighbour.c:1520
 neigh_output include/net/neighbour.h:510 [inline]
 ip6_finish_output2+0x985/0xb20 net/ipv6/ip6_output.c:117
 __ip6_finish_output+0x428/0x480 net/ipv6/ip6_output.c:182
 ip6_finish_output+0x39/0x160 net/ipv6/ip6_output.c:192
 NF_HOOK_COND include/linux/netfilter.h:290 [inline]
 ip6_output+0x10e/0x210 net/ipv6/ip6_output.c:215
 dst_output include/net/dst.h:448 [inline]
 ip6_local_out+0x60/0x80 net/ipv6/output_core.c:179
 ip6_send_skb net/ipv6/ip6_output.c:1904 [inline]
 ip6_push_pending_frames+0xb6/0x170 net/ipv6/ip6_output.c:1924
 rawv6_push_pending_frames net/ipv6/raw.c:613 [inline]
 rawv6_sendmsg+0x128c/0x1330 net/ipv6/raw.c:956
 inet_sendmsg+0x5f/0x80 net/ipv4/af_inet.c:821
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg net/socket.c:674 [inline]
 ____sys_sendmsg+0x360/0x4d0 net/socket.c:2350
 ___sys_sendmsg net/socket.c:2404 [inline]
 __sys_sendmmsg+0x315/0x4b0 net/socket.c:2490
 __do_sys_sendmmsg net/socket.c:2519 [inline]
 __se_sys_sendmmsg net/socket.c:2516 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2516
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/06 05:45 upstream 0a50438c8436 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ip6_tnl_start_xmit / ip6_tnl_start_xmit
* Struck through repros no longer work on HEAD.