syzbot


KCSAN: data-race in __ip_make_skb / __ip_make_skb

Status: fixed on 2023/10/12 12:48
Subsystems: net
[Documentation on labels]
Fix commit: f866fbc842de ipv4: fix data-races around inet->inet_id
First crash: 847d, last: 273d

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

read to 0xffff88816e817daa of 2 bytes by task 20216 on cpu 1:
 ip_select_ident_segs include/net/ip.h:541 [inline]
 ip_select_ident include/net/ip.h:556 [inline]
 __ip_make_skb+0x817/0xc70 net/ipv4/ip_output.c:1446
 ip_make_skb+0x233/0x2c0 net/ipv4/ip_output.c:1560
 udp_sendmsg+0x1199/0x1250 net/ipv4/udp.c:1260
 inet_sendmsg+0x63/0x80 net/ipv4/af_inet.c:830
 sock_sendmsg_nosec net/socket.c:725 [inline]
 sock_sendmsg net/socket.c:748 [inline]
 ____sys_sendmsg+0x37c/0x4d0 net/socket.c:2494
 ___sys_sendmsg net/socket.c:2548 [inline]
 __sys_sendmmsg+0x269/0x500 net/socket.c:2634
 __do_sys_sendmmsg net/socket.c:2663 [inline]
 __se_sys_sendmmsg net/socket.c:2660 [inline]
 __x64_sys_sendmmsg+0x57/0x60 net/socket.c:2660
 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 0xffff88816e817daa of 2 bytes by task 20212 on cpu 0:
 ip_select_ident_segs include/net/ip.h:542 [inline]
 ip_select_ident include/net/ip.h:556 [inline]
 __ip_make_skb+0x844/0xc70 net/ipv4/ip_output.c:1446
 ip_make_skb+0x233/0x2c0 net/ipv4/ip_output.c:1560
 udp_sendmsg+0x1199/0x1250 net/ipv4/udp.c:1260
 inet_sendmsg+0x63/0x80 net/ipv4/af_inet.c:830
 sock_sendmsg_nosec net/socket.c:725 [inline]
 sock_sendmsg net/socket.c:748 [inline]
 ____sys_sendmsg+0x37c/0x4d0 net/socket.c:2494
 ___sys_sendmsg net/socket.c:2548 [inline]
 __sys_sendmmsg+0x269/0x500 net/socket.c:2634
 __do_sys_sendmmsg net/socket.c:2663 [inline]
 __se_sys_sendmmsg net/socket.c:2660 [inline]
 __x64_sys_sendmmsg+0x57/0x60 net/socket.c:2660
 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: 0x0ed4 -> 0x0ed5

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 20212 Comm: syz-executor.2 Not tainted 6.5.0-rc7-syzkaller-00024-g93f5de5f648d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================

Crashes (624):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/25 02:11 upstream 93f5de5f648d 49be837e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/24 05:58 upstream a5e505a99ca7 4d7ae7ab .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/24 01:38 upstream a5e505a99ca7 b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/23 11:06 upstream 89bf6209cad6 b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/23 02:56 upstream 53663f4103ff b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/22 01:07 upstream f7757129e3de 6b415825 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/21 10:43 upstream f7757129e3de d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/20 20:19 upstream 706a74159504 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/20 06:25 upstream 9e6c269de404 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/19 15:24 upstream aa9ea98cca3a d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/18 13:23 upstream 0e8860d2125f acb1ba71 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/18 01:34 upstream 16931859a650 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/17 10:17 upstream 4853c74bd7ab 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/16 16:17 upstream 4853c74bd7ab 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/15 12:11 upstream 91aa6c412d7f 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/14 04:20 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/13 12:27 upstream a785fd28d31f 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/13 01:12 upstream ae545c3283dc 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/12 11:03 upstream f8de32cc060b 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/11 22:43 upstream 9106536c1aa3 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/11 13:26 upstream 25aa0bebba72 da3c3ef8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/10 19:28 upstream 374a7f47bf40 da3c3ef8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/09 14:13 upstream 13b937206866 8ad1a287 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/08 18:47 upstream 14f9643dc90a 9552ae77 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/08 04:39 upstream a027b2eca0b7 b1b6ae3d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/07 18:03 upstream 52a93d39b17d b1b6ae3d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/07 10:22 upstream 52a93d39b17d 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/07 01:49 upstream f0ab9f34e59e 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/06 10:07 upstream f6a691685962 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/05 18:19 upstream 024ff300db33 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/05 01:12 upstream e6fda526d9db cdae481e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/03 22:08 upstream 7bafbd4027ae 74621247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/03 16:00 upstream ec351c8f2e62 39a91c18 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/08/02 03:04 upstream 5d0c230f1de8 df07ffe8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/07/31 09:28 upstream 5d0c230f1de8 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/07/30 17:06 upstream d31e3792919e 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/07/30 02:37 upstream 12214540ad87 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/07/29 21:32 upstream ffabf7c73176 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/07/28 14:54 upstream 57012c57536f 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/07/27 22:51 upstream 0a8db05b571a 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/07/27 00:24 upstream 5f0bc0b042fc 41fe1bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/07/25 22:40 upstream 0b5547c51827 6756545c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/07/25 10:56 upstream 0b5547c51827 3b91ad04 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/07/25 02:23 upstream 20ea1e7d13c1 b03242d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/07/24 15:42 upstream 6eaae1980760 b03242d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2023/07/23 17:32 upstream c2782531397f 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2022/02/01 10:39 upstream 26291c54e111 c1c1631d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
2022/01/28 11:28 upstream 23a46422c561 495e00c5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ip_make_skb / __ip_make_skb
* Struck through repros no longer work on HEAD.