syzbot


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

Status: auto-closed as invalid on 2022/02/27 09:30
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 314d, last: 314d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in geneve_xmit / geneve_xmit (2) 1 724d 724d 0/24 auto-closed as invalid on 2021/01/12 17:00
upstream KCSAN: data-race in geneve_xmit / geneve_xmit 4 1000d 1037d 0/24 auto-closed as invalid on 2020/05/17 12:40
upstream KCSAN: data-race in geneve_xmit / geneve_xmit (3) 1 379d 379d 0/24 auto-closed as invalid on 2021/12/23 17:26
upstream KCSAN: data-race in geneve_xmit / geneve_xmit (5) 1 174d 174d 0/24 auto-closed as invalid on 2022/07/17 10:41

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

read to 0xffff888152ba3158 of 8 bytes by task 3642 on cpu 0:
 geneve_xmit+0x698/0x1880
 __netdev_start_xmit include/linux/netdevice.h:4682 [inline]
 netdev_start_xmit include/linux/netdevice.h:4696 [inline]
 xmit_one+0x105/0x2f0 net/core/dev.c:3473
 dev_hard_start_xmit net/core/dev.c:3489 [inline]
 __dev_queue_xmit+0x86d/0xf90 net/core/dev.c:4116
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4149
 neigh_hh_output include/net/neighbour.h:525 [inline]
 neigh_output include/net/neighbour.h:539 [inline]
 ip6_finish_output2+0x995/0xbd0 net/ipv6/ip6_output.c:126
 __ip6_finish_output net/ipv6/ip6_output.c:191 [inline]
 ip6_finish_output+0x446/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:451 [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:1251
 udpv6_sendmsg+0x165a/0x16d0 net/ipv6/udp.c:1549
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:643
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg net/socket.c:725 [inline]
 ____sys_sendmsg+0x39a/0x510 net/socket.c:2413
 ___sys_sendmsg net/socket.c:2467 [inline]
 __sys_sendmmsg+0x267/0x4c0 net/socket.c:2553
 __do_sys_sendmmsg net/socket.c:2582 [inline]
 __se_sys_sendmmsg net/socket.c:2579 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2579
 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 0xffff888152ba3158 of 8 bytes by task 3645 on cpu 1:
 geneve_xmit+0x6a7/0x1880
 __netdev_start_xmit include/linux/netdevice.h:4682 [inline]
 netdev_start_xmit include/linux/netdevice.h:4696 [inline]
 xmit_one+0x105/0x2f0 net/core/dev.c:3473
 dev_hard_start_xmit net/core/dev.c:3489 [inline]
 __dev_queue_xmit+0x86d/0xf90 net/core/dev.c:4116
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4149
 neigh_hh_output include/net/neighbour.h:525 [inline]
 neigh_output include/net/neighbour.h:539 [inline]
 ip6_finish_output2+0x995/0xbd0 net/ipv6/ip6_output.c:126
 __ip6_finish_output net/ipv6/ip6_output.c:191 [inline]
 ip6_finish_output+0x446/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:451 [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:1251
 udpv6_sendmsg+0x165a/0x16d0 net/ipv6/udp.c:1549
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:643
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg net/socket.c:725 [inline]
 ____sys_sendmsg+0x39a/0x510 net/socket.c:2413
 ___sys_sendmsg net/socket.c:2467 [inline]
 __sys_sendmmsg+0x267/0x4c0 net/socket.c:2553
 __do_sys_sendmmsg net/socket.c:2582 [inline]
 __se_sys_sendmmsg net/socket.c:2579 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2579
 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: 0x00000000000009d3 -> 0x00000000000009d4

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

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/01/23 09:25 upstream 1c52283265a4 214351e1 .config log report info KCSAN: data-race in geneve_xmit / geneve_xmit
* Struck through repros no longer work on HEAD.