syzbot


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

Status: auto-closed as invalid on 2021/05/18 14:42
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 533d, last: 493d
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 1 1006d 1006d 0/23 auto-closed as invalid on 2020/01/26 16:46
upstream KCSAN: data-race in inet_send_prepare / sctp_get_port_local (3) 2 701d 732d 0/23 auto-closed as invalid on 2020/10/22 02:42
upstream KCSAN: data-race in inet_send_prepare / sctp_get_port_local (2) 1 779d 779d 0/23 auto-closed as invalid on 2020/08/04 21:16
upstream KCSAN: data-race in inet_send_prepare / sctp_get_port_local (4) 3 583d 616d 0/23 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 0xffff88801f42b3ce of 2 bytes by task 27834 on cpu 1:
 sctp_get_port_local+0x765/0xab0 net/sctp/socket.c:8318
 sctp_do_bind+0x38d/0x4a0 net/sctp/socket.c:417
 sctp_bind+0x6a/0x80 net/sctp/socket.c:317
 inet6_bind+0x6a/0x160 net/ipv6/af_inet6.c:448
 __sys_bind+0x200/0x290 net/socket.c:1637
 __do_sys_bind net/socket.c:1648 [inline]
 __se_sys_bind net/socket.c:1646 [inline]
 __x64_sys_bind+0x3d/0x50 net/socket.c:1646
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88801f42b3ce of 2 bytes by task 27841 on cpu 0:
 inet_send_prepare+0x21/0x210 net/ipv4/af_inet.c:806
 inet_sendmsg+0x29/0x80 net/ipv4/af_inet.c:818
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg net/socket.c:674 [inline]
 __sys_sendto+0x2a8/0x370 net/socket.c:1977
 __do_sys_sendto net/socket.c:1989 [inline]
 __se_sys_sendto net/socket.c:1985 [inline]
 __x64_sys_sendto+0x74/0x90 net/socket.c:1985
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 27841 Comm: syz-executor.4 Not tainted 5.12.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/04/13 14:33 upstream 89698becf06d 6a81331a .config log report info KCSAN: data-race in inet_send_prepare / sctp_get_port_local
ci2-upstream-kcsan-gce 2021/04/07 11:04 upstream 2d743660786e 6a81331a .config log report info KCSAN: data-race in inet_send_prepare / sctp_get_port_local
ci2-upstream-kcsan-gce 2021/03/03 20:19 upstream f69d02e37a85 06ed56cd .config log report info KCSAN: data-race in inet_send_prepare / sctp_get_port_local