syzbot


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

Status: auto-obsoleted due to no activity on 2023/04/02 09:13
Subsystems: net
[Documentation on labels]
First crash: 496d, last: 445d
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 706d 702d 0/26 auto-closed as invalid on 2022/07/03 10:30
upstream KCSAN: data-race in __ip4_datagram_connect / __ip_make_skb (3) net 1 569d 569d 0/26 auto-obsoleted due to no activity on 2022/11/16 18:44
upstream KCSAN: data-race in __ip4_datagram_connect / __ip_make_skb (5) net 3 282d 311d 23/26 fixed on 2023/10/12 12:48
upstream KCSAN: data-race in __ip4_datagram_connect / __ip_make_skb (2) net 1 613d 613d 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

write to 0xffff88813bf7486a of 2 bytes by task 32331 on cpu 1:
 __ip4_datagram_connect+0x74b/0x7a0 net/ipv4/datagram.c:76
 __ip6_datagram_connect+0x56f/0x7e0 net/ipv6/datagram.c:194
 ip6_datagram_connect+0x2e/0x40 net/ipv6/datagram.c:277
 inet_dgram_connect+0x114/0x1a0 net/ipv4/af_inet.c:582
 __sys_connect_file net/socket.c:1976 [inline]
 __sys_connect+0x19b/0x1b0 net/socket.c:1993
 __do_sys_connect net/socket.c:2003 [inline]
 __se_sys_connect net/socket.c:2000 [inline]
 __x64_sys_connect+0x41/0x50 net/socket.c:2000
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read-write to 0xffff88813bf7486a of 2 bytes by task 32339 on cpu 0:
 ip_select_ident_segs include/net/ip.h:533 [inline]
 ip_select_ident include/net/ip.h:547 [inline]
 __ip_make_skb+0x886/0xc50 net/ipv4/ip_output.c:1556
 ip_make_skb+0x233/0x2c0 net/ipv4/ip_output.c:1660
 udp_sendmsg+0x1146/0x1220 net/ipv4/udp.c:1260
 udpv6_sendmsg+0x665/0x1550
 inet6_sendmsg+0x63/0x80 net/ipv6/af_inet6.c:661
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0x390/0x510 net/socket.c:2476
 ___sys_sendmsg net/socket.c:2530 [inline]
 __sys_sendmmsg+0x263/0x500 net/socket.c:2616
 __do_sys_sendmmsg net/socket.c:2645 [inline]
 __se_sys_sendmmsg net/socket.c:2642 [inline]
 __x64_sys_sendmmsg+0x57/0x60 net/socket.c:2642
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x38f8 -> 0xd7b8

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 32339 Comm: syz-executor.1 Not tainted 6.2.0-rc8-syzkaller-00002-gb408817d4884-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/14 12:10 upstream b408817d4884 93ae7e0a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip4_datagram_connect / __ip_make_skb
2023/01/13 02:08 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip4_datagram_connect / __ip_make_skb
2022/12/26 18:59 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip4_datagram_connect / __ip_make_skb
2022/12/25 08:42 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip4_datagram_connect / __ip_make_skb
* Struck through repros no longer work on HEAD.