syzbot


KCSAN: data-race in ip6_tnl_start_xmit / ip6_tnl_start_xmit

Status: auto-closed as invalid on 2020/05/22 23:22
Subsystems: net
[Documentation on labels]
First crash: 2121d, last: 1986d
Similar bugs (8)
Kernel Title Rank 🛈 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 6 1 1258d 1258d 0/29 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 6 2 1118d 1127d 0/29 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 6 9 1312d 1377d 0/29 auto-closed as invalid on 2022/02/20 15:36
upstream KCSAN: data-race in ip6_tnl_start_xmit / ip6_tnl_start_xmit (2) net 6 2 1857d 1858d 0/29 auto-closed as invalid on 2020/08/24 20:07
upstream KCSAN: data-race in ip6_tnl_start_xmit / ip6_tnl_start_xmit (4) net 6 1 1598d 1598d 0/29 auto-closed as invalid on 2021/05/17 09:21
upstream KCSAN: data-race in ip6_tnl_start_xmit / ip6_tnl_start_xmit (3) net 6 2 1757d 1763d 0/29 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 6 1 1198d 1198d 0/29 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 6 3 988d 1012d 0/29 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 0xffff8880b8380130 of 8 bytes by task 19048 on cpu 0:
 ip6_tnl_start_xmit+0x427/0x1160 net/ipv6/ip6_tunnel.c:1414
 __netdev_start_xmit include/linux/netdevice.h:4510 [inline]
 netdev_start_xmit include/linux/netdevice.h:4524 [inline]
 xmit_one net/core/dev.c:3470 [inline]
 dev_hard_start_xmit+0xeb/0x420 net/core/dev.c:3486
 __dev_queue_xmit+0x14c4/0x1b80 net/core/dev.c:4063
 dev_queue_xmit+0x1e/0x30 net/core/dev.c:4096
 neigh_direct_output+0x1c/0x30 net/core/neighbour.c:1527
 neigh_output include/net/neighbour.h:510 [inline]
 ip_finish_output2+0x3f2/0xed0 net/ipv4/ip_output.c:228
 __ip_finish_output net/ipv4/ip_output.c:306 [inline]
 __ip_finish_output+0x22f/0x460 net/ipv4/ip_output.c:288
 ip_finish_output+0x3e/0x160 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip_mc_output+0x13e/0x620 net/ipv4/ip_output.c:415
 dst_output include/net/dst.h:436 [inline]
 ip_local_out+0x70/0x90 net/ipv4/ip_output.c:125
 ip_send_skb+0x32/0xb0 net/ipv4/ip_output.c:1560
 udp_send_skb.isra.0+0x3b8/0x8d0 net/ipv4/udp.c:891
 udp_sendmsg+0x1589/0x1930 net/ipv4/udp.c:1178
 udpv6_sendmsg+0xe75/0x1d40 net/ipv6/udp.c:1283
 inet6_sendmsg+0x69/0x90 net/ipv6/af_inet6.c:576
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0x98/0xc0 net/socket.c:672
 ____sys_sendmsg+0x207/0x4c0 net/socket.c:2343
 ___sys_sendmsg+0xb5/0x100 net/socket.c:2397
 __sys_sendmmsg+0x10e/0x310 net/socket.c:2487
 __do_sys_sendmmsg net/socket.c:2516 [inline]
 __se_sys_sendmmsg net/socket.c:2513 [inline]
 __x64_sys_sendmmsg+0x60/0x80 net/socket.c:2513
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b8380130 of 8 bytes by task 19068 on cpu 1:
 ip6_tnl_start_xmit+0x40d/0x1160 net/ipv6/ip6_tunnel.c:1414
 __netdev_start_xmit include/linux/netdevice.h:4510 [inline]
 netdev_start_xmit include/linux/netdevice.h:4524 [inline]
 xmit_one net/core/dev.c:3470 [inline]
 dev_hard_start_xmit+0xeb/0x420 net/core/dev.c:3486
 __dev_queue_xmit+0x14c4/0x1b80 net/core/dev.c:4063
 dev_queue_xmit+0x1e/0x30 net/core/dev.c:4096
 neigh_direct_output+0x1c/0x30 net/core/neighbour.c:1527
 neigh_output include/net/neighbour.h:510 [inline]
 ip_finish_output2+0x3f2/0xed0 net/ipv4/ip_output.c:228
 __ip_finish_output net/ipv4/ip_output.c:306 [inline]
 __ip_finish_output+0x22f/0x460 net/ipv4/ip_output.c:288
 ip_finish_output+0x3e/0x160 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip_mc_output+0x13e/0x620 net/ipv4/ip_output.c:415
 dst_output include/net/dst.h:436 [inline]
 ip_local_out+0x70/0x90 net/ipv4/ip_output.c:125
 ip_send_skb+0x32/0xb0 net/ipv4/ip_output.c:1560
 udp_send_skb.isra.0+0x3b8/0x8d0 net/ipv4/udp.c:891
 udp_sendmsg+0x1589/0x1930 net/ipv4/udp.c:1178
 udpv6_sendmsg+0xe75/0x1d40 net/ipv6/udp.c:1283
 inet6_sendmsg+0x69/0x90 net/ipv6/af_inet6.c:576
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0x98/0xc0 net/socket.c:672
 ____sys_sendmsg+0x207/0x4c0 net/socket.c:2343
 ___sys_sendmsg+0xb5/0x100 net/socket.c:2397
 __sys_sendmmsg+0x10e/0x310 net/socket.c:2487
 __do_sys_sendmmsg net/socket.c:2516 [inline]
 __se_sys_sendmmsg net/socket.c:2513 [inline]
 __x64_sys_sendmmsg+0x60/0x80 net/socket.c:2513
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/13 23:13 https://github.com/google/ktsan.git kcsan 941e0d917bbf 749688d2 .config console log report ci2-upstream-kcsan-gce
2020/03/07 16:14 https://github.com/google/ktsan.git kcsan 941e0d917bbf 2e9971bb .config console log report ci2-upstream-kcsan-gce
2020/02/21 23:54 https://github.com/google/ktsan.git kcsan 766d004d1b85 2ffa6679 .config console log report ci2-upstream-kcsan-gce
2020/02/10 09:05 https://github.com/google/ktsan.git kcsan f60f0f543333 35f5e45e .config console log report ci2-upstream-kcsan-gce
2020/01/28 17:03 https://github.com/google/ktsan.git kcsan 245a43005292 c8e81ce4 .config console log report ci2-upstream-kcsan-gce
2019/12/28 23:35 https://github.com/google/ktsan.git kcsan 245a43005292 af6b8ef8 .config console log report ci2-upstream-kcsan-gce
2019/12/24 13:22 https://github.com/google/ktsan.git kcsan 245a43005292 be5c2c81 .config console log report ci2-upstream-kcsan-gce
2019/11/27 22:33 https://github.com/google/ktsan.git kcsan ef798c30ba4e 0d63f89c .config console log report ci2-upstream-kcsan-gce
2019/11/14 12:11 https://github.com/google/ktsan.git kcsan 7f2955e0d056 048f2d49 .config console log report ci2-upstream-kcsan-gce
2019/10/30 21:33 https://github.com/google/ktsan.git kcsan 05f2236801fe a41ca8fa .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.