syzbot


KCSAN: data-race in __ip4_datagram_connect / __ip_make_skb (3)

Status: auto-obsoleted due to no activity on 2022/11/16 18:44
Subsystems: net
[Documentation on labels]
First crash: 551d, last: 551d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __ip4_datagram_connect / __ip_make_skb net 1 688d 684d 0/26 auto-closed as invalid on 2022/07/03 10:30
upstream KCSAN: data-race in __ip4_datagram_connect / __ip_make_skb (4) net 4 427d 478d 0/26 auto-obsoleted due to no activity on 2023/04/02 09:13
upstream KCSAN: data-race in __ip4_datagram_connect / __ip_make_skb (5) net 3 264d 293d 23/26 fixed on 2023/10/12 12:48
upstream KCSAN: data-race in __ip4_datagram_connect / __ip_make_skb (2) net 1 595d 595d 0/26 auto-closed as invalid on 2022/10/03 20:50

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

read to 0xffff88813b23b9aa of 2 bytes by task 31073 on cpu 0:
 ip_select_ident_segs include/net/ip.h:532 [inline]
 ip_select_ident include/net/ip.h:547 [inline]
 __ip_make_skb+0x83a/0xb50 net/ipv4/ip_output.c:1556
 ip_make_skb+0x238/0x2c0 net/ipv4/ip_output.c:1660
 udp_sendmsg+0x1121/0x1200 net/ipv4/udp.c:1253
 inet_sendmsg+0x5f/0x80 net/ipv4/af_inet.c:819
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0x38f/0x500 net/socket.c:2482
 ___sys_sendmsg net/socket.c:2536 [inline]
 __sys_sendmmsg+0x27c/0x4a0 net/socket.c:2622
 __do_sys_sendmmsg net/socket.c:2651 [inline]
 __se_sys_sendmmsg net/socket.c:2648 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2648
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff88813b23b9aa of 2 bytes by task 31072 on cpu 1:
 __ip4_datagram_connect+0x77b/0x7d0 net/ipv4/datagram.c:76
 ip4_datagram_connect+0x2a/0x40 net/ipv4/datagram.c:90
 inet_dgram_connect+0x107/0x190 net/ipv4/af_inet.c:576
 __sys_connect_file net/socket.c:1976 [inline]
 __sys_connect+0x197/0x1b0 net/socket.c:1993
 __do_sys_connect net/socket.c:2003 [inline]
 __se_sys_connect net/socket.c:2000 [inline]
 __x64_sys_connect+0x3d/0x50 net/socket.c:2000
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x8ab2 -> 0x8ab4

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 31072 Comm: syz-executor.3 Not tainted 6.0.0-syzkaller-11414-g49da07006239-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/12 18:39 upstream 49da07006239 16a9c9e0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ip4_datagram_connect / __ip_make_skb
* Struck through repros no longer work on HEAD.