syzbot


KCSAN: data-race in sctp_association_free / sctp_wait_for_connect (4)

Status: auto-closed as invalid on 2021/12/19 15:10
Subsystems: sctp
[Documentation on labels]
First crash: 892d, last: 892d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect (9) sctp 3 15d 51d 0/26 moderation: reported on 2024/03/04 15:29
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect sctp 8 1530d 1628d 0/26 auto-closed as invalid on 2020/04/25 04:20
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect (5) sctp 2 696d 710d 0/26 auto-closed as invalid on 2022/07/03 08:54
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect (6) kernel 1 442d 442d 0/26 auto-obsoleted due to no activity on 2023/03/21 10:51
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect (3) sctp 1 1140d 1140d 0/26 auto-closed as invalid on 2021/04/15 05:09
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect (7) sctp 1 384d 384d 0/26 auto-obsoleted due to no activity on 2023/05/10 22:22
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect (2) sctp 1 1317d 1317d 0/26 auto-closed as invalid on 2020/10/20 15:22
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect (8) sctp 1 297d 297d 0/26 auto-obsoleted due to no activity on 2023/08/06 09:15

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

write to 0xffff888143ed301c of 1 bytes by task 18644 on cpu 0:
 sctp_association_free+0x153/0x590 net/sctp/associola.c:339
 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:940 [inline]
 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1324 [inline]
 sctp_side_effects net/sctp/sm_sideeffect.c:1195 [inline]
 sctp_do_sm+0x2935/0x2f80 net/sctp/sm_sideeffect.c:1166
 sctp_primitive_ABORT+0x71/0x80 net/sctp/primitive.c:104
 sctp_sendmsg_check_sflags+0x18a/0x1c0 net/sctp/socket.c:1778
 sctp_sendmsg+0x11e6/0x1ad0 net/sctp/socket.c:2018
 inet_sendmsg+0x5f/0x80 net/ipv4/af_inet.c:819
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0x39a/0x510 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmmsg+0x267/0x4c0 net/socket.c:2549
 __do_sys_sendmmsg net/socket.c:2578 [inline]
 __se_sys_sendmmsg net/socket.c:2575 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2575
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888143ed301c of 1 bytes by task 18638 on cpu 1:
 sctp_wait_for_connect+0x177/0x360 net/sctp/socket.c:9295
 __sctp_connect+0x981/0xa80 net/sctp/socket.c:1244
 __sctp_setsockopt_connectx net/sctp/socket.c:1333 [inline]
 sctp_setsockopt_connectx net/sctp/socket.c:1360 [inline]
 sctp_setsockopt+0x2e4e/0x8870 net/sctp/socket.c:4611
 sock_common_setsockopt+0x5d/0x70 net/core/sock.c:3478
 __sys_setsockopt+0x209/0x2a0 net/socket.c:2176
 __do_sys_setsockopt net/socket.c:2187 [inline]
 __se_sys_setsockopt net/socket.c:2184 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2184
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00 -> 0x01

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/14 15:08 upstream c8c109546a19 75b04091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sctp_association_free / sctp_wait_for_connect
* Struck through repros no longer work on HEAD.