syzbot


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

Status: auto-closed as invalid on 2021/07/05 08:43
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+dd492f98ffac3961bbd4@syzkaller.appspotmail.com
First crash: 1322d, last: 1303d
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit (6) net 32 1089d 1254d 0/28 auto-closed as invalid on 2022/01/21 16:19
upstream KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit net 22 1729d 1862d 0/28 auto-closed as invalid on 2020/05/25 22:33
upstream KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit (11) net 1 729d 729d 0/28 auto-obsoleted due to no activity on 2023/01/17 03:08
upstream KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit (9) net 1 849d 849d 0/28 auto-closed as invalid on 2022/09/18 04:26
upstream KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit (10) net 4 766d 809d 0/28 auto-obsoleted due to no activity on 2022/12/10 01:58
upstream KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit (2) net 11 1526d 1630d 0/28 auto-closed as invalid on 2020/11/10 03:04
upstream KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit (8) net 1 891d 891d 0/28 auto-closed as invalid on 2022/08/06 22:00
upstream KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit (4) net 2 1393d 1416d 0/28 auto-closed as invalid on 2021/03/23 07:29
upstream KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit (7) net 10 930d 1040d 0/28 auto-closed as invalid on 2022/06/29 00:38
upstream KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit (3) net 5 1452d 1460d 0/28 auto-closed as invalid on 2021/01/23 09:54
upstream KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit (12) net 3 643d 643d 22/28 fixed on 2023/06/08 14:41

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

write to 0xffff888122ddf150 of 8 bytes by task 14026 on cpu 1:
 ip_tunnel_xmit+0xdd2/0x11c0 net/ipv4/ip_tunnel.c:813
 sit_tunnel_xmit__ net/ipv6/sit.c:1058 [inline]
 sit_tunnel_xmit+0x3c2/0x11f0 net/ipv6/sit.c:1074
 __netdev_start_xmit include/linux/netdevice.h:4944 [inline]
 netdev_start_xmit include/linux/netdevice.h:4958 [inline]
 xmit_one+0xf9/0x270 net/core/dev.c:3654
 dev_hard_start_xmit net/core/dev.c:3670 [inline]
 __dev_queue_xmit+0xd44/0x1300 net/core/dev.c:4245
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4278
 neigh_connected_output+0x264/0x290 net/core/neighbour.c:1524
 neigh_output include/net/neighbour.h:510 [inline]
 ip_finish_output2+0x874/0xb10 net/ipv4/ip_output.c:230
 __ip_finish_output net/ipv4/ip_output.c:252 [inline]
 ip_finish_output+0x2fa/0x490 net/ipv4/ip_output.c:318
 NF_HOOK_COND include/linux/netfilter.h:290 [inline]
 ip_output+0xf6/0x1a0 net/ipv4/ip_output.c:432
 dst_output include/net/dst.h:448 [inline]
 ip_local_out+0x167/0x230 net/ipv4/ip_output.c:126
 ip_send_skb+0x27/0x90 net/ipv4/ip_output.c:1568
 udp_send_skb+0x62d/0x860 net/ipv4/udp.c:953
 udp_sendmsg+0xfe4/0x12f0 net/ipv4/udp.c:1240
 udpv6_sendmsg+0x520/0x16b0 net/ipv6/udp.c:1351
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:642
 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+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888122ddf150 of 8 bytes by task 14057 on cpu 0:
 ip_tunnel_xmit+0xdc0/0x11c0 net/ipv4/ip_tunnel.c:813
 sit_tunnel_xmit__ net/ipv6/sit.c:1058 [inline]
 sit_tunnel_xmit+0x3c2/0x11f0 net/ipv6/sit.c:1074
 __netdev_start_xmit include/linux/netdevice.h:4944 [inline]
 netdev_start_xmit include/linux/netdevice.h:4958 [inline]
 xmit_one+0xf9/0x270 net/core/dev.c:3654
 dev_hard_start_xmit net/core/dev.c:3670 [inline]
 __dev_queue_xmit+0xd44/0x1300 net/core/dev.c:4245
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4278
 neigh_connected_output+0x264/0x290 net/core/neighbour.c:1524
 neigh_output include/net/neighbour.h:510 [inline]
 ip_finish_output2+0x874/0xb10 net/ipv4/ip_output.c:230
 __ip_finish_output net/ipv4/ip_output.c:252 [inline]
 ip_finish_output+0x2fa/0x490 net/ipv4/ip_output.c:318
 NF_HOOK_COND include/linux/netfilter.h:290 [inline]
 ip_output+0xf6/0x1a0 net/ipv4/ip_output.c:432
 dst_output include/net/dst.h:448 [inline]
 ip_local_out+0x167/0x230 net/ipv4/ip_output.c:126
 ip_send_skb+0x27/0x90 net/ipv4/ip_output.c:1568
 udp_send_skb+0x62d/0x860 net/ipv4/udp.c:953
 udp_sendmsg+0xfe4/0x12f0 net/ipv4/udp.c:1240
 udpv6_sendmsg+0x520/0x16b0 net/ipv6/udp.c:1351
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:642
 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+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

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

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/16 19:41 upstream 63d1cb53e26a f54a5c09 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit
2021/05/08 00:53 upstream 1ad77a05cfae bc5434be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit
2021/05/06 05:24 upstream a79cdfba68a1 06c27ff5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit
2021/05/04 09:48 upstream 5e321ded302d 09efdd63 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit
2021/04/28 02:57 upstream e359bce39d90 805b5003 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ip_tunnel_xmit / ip_tunnel_xmit
* Struck through repros no longer work on HEAD.