syzbot


KCSAN: data-race in __skb_wait_for_more_packets / inet_shutdown (3)

Status: auto-closed as invalid on 2021/03/10 20:35
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 794d, last: 734d
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __skb_wait_for_more_packets / inet_shutdown (6) 1 235d 235d 0/24 auto-closed as invalid on 2022/07/22 19:29
upstream KCSAN: data-race in __skb_wait_for_more_packets / inet_shutdown (5) 2 598d 605d 0/24 auto-closed as invalid on 2021/07/25 13:18
upstream KCSAN: data-race in __skb_wait_for_more_packets / inet_shutdown (4) 1 643d 643d 0/24 auto-closed as invalid on 2021/06/10 09:09
upstream KCSAN: data-race in __skb_wait_for_more_packets / inet_shutdown (2) 3 854d 889d 0/24 auto-closed as invalid on 2020/11/11 11:35
upstream KCSAN: data-race in __skb_wait_for_more_packets / inet_shutdown 8 1045d 1183d 0/24 auto-closed as invalid on 2020/06/07 18:23

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

write to 0xffff88810ed4072a of 1 bytes by task 10754 on cpu 1:
 inet_shutdown+0x148/0x200 net/ipv4/af_inet.c:887
 __sys_shutdown_sock net/socket.c:2184 [inline]
 __sys_shutdown net/socket.c:2196 [inline]
 __do_sys_shutdown net/socket.c:2204 [inline]
 __se_sys_shutdown+0xf6/0x140 net/socket.c:2202
 __x64_sys_shutdown+0x2d/0x40 net/socket.c:2202
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810ed4072a of 1 bytes by task 10721 on cpu 0:
 __skb_wait_for_more_packets+0xdd/0x2e0 net/core/datagram.c:106
 __skb_recv_udp+0x749/0x870 net/ipv4/udp.c:1770
 udp_recvmsg+0x145/0xa30 net/ipv4/udp.c:1800
 inet_recvmsg+0xa3/0x210 net/ipv4/af_inet.c:848
 sock_recvmsg_nosec net/socket.c:886 [inline]
 sock_recvmsg net/socket.c:904 [inline]
 __sys_recvfrom+0x1d7/0x2a0 net/socket.c:2032
 __do_sys_recvfrom net/socket.c:2050 [inline]
 __se_sys_recvfrom net/socket.c:2046 [inline]
 __x64_sys_recvfrom+0x74/0x90 net/socket.c:2046
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10721 Comm: syz-executor.2 Not tainted 5.11.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2021/02/03 20:27 upstream 3aaf0a27ffc2 624dad51 .config console log report info KCSAN: data-race in __skb_wait_for_more_packets / inet_shutdown
ci2-upstream-kcsan-gce 2021/01/02 20:02 upstream eda809aef534 79264ae3 .config console log report info
ci2-upstream-kcsan-gce 2020/12/24 13:02 upstream 58cf05f597b0 c2c1d1dd .config console log report info
ci2-upstream-kcsan-gce 2020/12/05 14:22 upstream b3298500b23f 0ef84591 .config console log report info
* Struck through repros no longer work on HEAD.