syzbot


KCSAN: data-race in __ip6_datagram_connect / udpv6_sendmsg (8)

Status: auto-closed as invalid on 2022/05/10 17:08
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 244d, last: 244d
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __ip6_datagram_connect / udpv6_sendmsg (3) 1 845d 845d 0/24 auto-closed as invalid on 2020/09/15 18:30
upstream KCSAN: data-race in __ip6_datagram_connect / udpv6_sendmsg (2) 2 979d 1003d 0/24 auto-closed as invalid on 2020/06/08 20:05
upstream KCSAN: data-race in __ip6_datagram_connect / udpv6_sendmsg 1 1123d 1123d 0/24 closed as invalid on 2019/11/19 14:04
upstream KCSAN: data-race in __ip6_datagram_connect / udpv6_sendmsg (7) 2 411d 411d 0/24 auto-closed as invalid on 2021/11/24 02:15
upstream KCSAN: data-race in __ip6_datagram_connect / udpv6_sendmsg (6) 1 509d 505d 0/24 auto-closed as invalid on 2021/08/17 18:48
upstream KCSAN: data-race in __ip6_datagram_connect / udpv6_sendmsg (4) 1 801d 801d 0/24 auto-closed as invalid on 2020/10/30 14:03
upstream KCSAN: data-race in __ip6_datagram_connect / udpv6_sendmsg (5) 1 584d 584d 0/24 auto-closed as invalid on 2021/06/04 08:11

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

write to 0xffff888136d47a94 of 4 bytes by task 7681 on cpu 0:
 __ip6_datagram_connect+0x6e2/0x930 net/ipv6/datagram.c:221
 ip6_datagram_connect+0x2a/0x40 net/ipv6/datagram.c:272
 inet_dgram_connect+0x107/0x190 net/ipv4/af_inet.c:576
 __sys_connect_file net/socket.c:1900 [inline]
 __sys_connect+0x197/0x1b0 net/socket.c:1917
 __do_sys_connect net/socket.c:1927 [inline]
 __se_sys_connect net/socket.c:1924 [inline]
 __x64_sys_connect+0x3d/0x50 net/socket.c:1924
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x50 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888136d47a94 of 4 bytes by task 7670 on cpu 1:
 udpv6_sendmsg+0xc60/0x16e0 net/ipv6/udp.c:1436
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:652
 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+0x2b/0x50 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000 -> 0xffffff9b

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7670 Comm: syz-executor.3 Tainted: G        W         5.18.0-rc1-syzkaller-dirty #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/04/05 17:07 upstream 312310928417 0127c10f .config log report info KCSAN: data-race in __ip6_datagram_connect / udpv6_sendmsg
* Struck through repros no longer work on HEAD.