syzbot


KCSAN: data-race in inet_send_prepare / sctp_get_port_local (3)

Status: auto-closed as invalid on 2020/10/22 02:42
Subsystems: sctp
[Documentation on labels]
First crash: 1341d, last: 1310d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in inet_send_prepare / sctp_get_port_local sctp 1 1614d 1614d 0/26 auto-closed as invalid on 2020/01/26 16:46
upstream KCSAN: data-race in inet_send_prepare / sctp_get_port_local (2) sctp 1 1388d 1388d 0/26 auto-closed as invalid on 2020/08/04 21:16
upstream KCSAN: data-race in inet_send_prepare / sctp_get_port_local (5) sctp 3 1101d 1142d 0/26 auto-closed as invalid on 2021/05/18 14:42
upstream KCSAN: data-race in inet_send_prepare / sctp_get_port_local (4) sctp 3 1192d 1224d 0/26 auto-closed as invalid on 2021/02/16 22:07

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

write to 0xffff888121c6b88e of 2 bytes by task 23875 on cpu 1:
 sctp_get_port_local+0x760/0xaa0 net/sctp/socket.c:8202
 sctp_do_bind+0x38d/0x4a0 net/sctp/socket.c:417
 sctp_autobind net/sctp/socket.c:8481 [inline]
 sctp_connect_new_asoc+0x147/0x390 net/sctp/socket.c:1065
 sctp_sendmsg_new_asoc net/sctp/socket.c:1676 [inline]
 sctp_sendmsg+0x10f5/0x1a90 net/sctp/socket.c:1986
 inet_sendmsg+0x5f/0x80 net/ipv4/af_inet.c:817
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg net/socket.c:671 [inline]
 __sys_sendto+0x2ae/0x380 net/socket.c:1992
 __do_sys_sendto net/socket.c:2004 [inline]
 __se_sys_sendto net/socket.c:2000 [inline]
 __x64_sys_sendto+0x74/0x90 net/socket.c:2000
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888121c6b88e of 2 bytes by task 23881 on cpu 0:
 inet_send_prepare+0x21/0x210 net/ipv4/af_inet.c:802
 inet_sendmsg+0x29/0x80 net/ipv4/af_inet.c:814
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg net/socket.c:671 [inline]
 __sys_sendto+0x2ae/0x380 net/socket.c:1992
 __do_sys_sendto net/socket.c:2004 [inline]
 __se_sys_sendto net/socket.c:2000 [inline]
 __x64_sys_sendto+0x74/0x90 net/socket.c:2000
 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: 23881 Comm: syz-executor.4 Not tainted 5.9.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/17 02:40 upstream 5925fa68fe82 8247808b .config console log report info ci2-upstream-kcsan-gce
2020/08/17 06:56 upstream 2cc3c4b3c2e9 5ce13532 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.