syzbot


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

Status: auto-obsoleted due to no activity on 2023/05/10 22:22
Subsystems: sctp
[Documentation on labels]
First crash: 716d, last: 716d
Similar bugs (9)
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 347d 383d 0/28 auto-obsoleted due to no activity on 2024/05/13 21:41
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect sctp 8 1862d 1960d 0/28 auto-closed as invalid on 2020/04/25 04:20
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect (10) sctp 1 254d 254d 0/28 auto-obsoleted due to no activity on 2024/08/15 02:20
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect (5) sctp 2 1028d 1042d 0/28 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 774d 774d 0/28 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 1472d 1472d 0/28 auto-closed as invalid on 2021/04/15 05:09
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect (4) sctp 1 1224d 1224d 0/28 auto-closed as invalid on 2021/12/19 15:10
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect (2) sctp 1 1649d 1649d 0/28 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 629d 629d 0/28 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 0xffff88812fc0f008 of 1 bytes by task 8809 on cpu 1:
 sctp_association_free+0x14c/0x580 net/sctp/associola.c:336
 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:944 [inline]
 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1328 [inline]
 sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline]
 sctp_do_sm+0x2b25/0x3160 net/sctp/sm_sideeffect.c:1170
 sctp_primitive_ABORT+0x75/0x90 net/sctp/primitive.c:104
 sctp_sendmsg_check_sflags+0x199/0x1d0 net/sctp/socket.c:1780
 sctp_sendmsg+0x129c/0x1900 net/sctp/socket.c:2017
 inet_sendmsg+0x63/0x80 net/ipv4/af_inet.c:825
 sock_sendmsg_nosec net/socket.c:724 [inline]
 sock_sendmsg net/socket.c:747 [inline]
 ____sys_sendmsg+0x375/0x4c0 net/socket.c:2501
 ___sys_sendmsg net/socket.c:2555 [inline]
 __sys_sendmmsg+0x263/0x500 net/socket.c:2641
 __do_sys_sendmmsg net/socket.c:2670 [inline]
 __se_sys_sendmmsg net/socket.c:2667 [inline]
 __x64_sys_sendmmsg+0x57/0x60 net/socket.c:2667
 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 to 0xffff88812fc0f008 of 1 bytes by task 8808 on cpu 0:
 sctp_wait_for_connect+0x178/0x350 net/sctp/socket.c:9309
 __sctp_connect+0x705/0x780 net/sctp/socket.c:1246
 __sctp_setsockopt_connectx net/sctp/socket.c:1335 [inline]
 sctp_setsockopt_connectx+0xc5/0x120 net/sctp/socket.c:1362
 sctp_setsockopt+0x716/0xe90 net/sctp/socket.c:4609
 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3668
 __sys_setsockopt+0x1c3/0x230 net/socket.c:2271
 __do_sys_setsockopt net/socket.c:2282 [inline]
 __se_sys_setsockopt net/socket.c:2279 [inline]
 __x64_sys_setsockopt+0x66/0x80 net/socket.c:2279
 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: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8808 Comm: syz-executor.3 Not tainted 6.3.0-rc5-syzkaller-00032-g99ddf2254feb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/05 22:12 upstream 99ddf2254feb 8b834965 .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.