syzbot


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

Status: auto-closed as invalid on 2022/07/03 08:54
Subsystems: sctp
[Documentation on labels]
First crash: 724d, last: 710d
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 30d 65d 0/26 moderation: reported on 2024/03/04 15:29
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect sctp 8 1544d 1643d 0/26 auto-closed as invalid on 2020/04/25 04:20
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect (6) kernel 1 456d 456d 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 1154d 1154d 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 399d 399d 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 (4) sctp 1 906d 906d 0/26 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 1331d 1331d 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 311d 311d 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 0xffff888131091008 of 1 bytes by task 12442 on cpu 0:
 sctp_association_free+0x148/0x5a0 net/sctp/associola.c:339
 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+0x28b1/0x2ed0 net/sctp/sm_sideeffect.c:1170
 sctp_primitive_ABORT+0x71/0x80 net/sctp/primitive.c:104
 sctp_sendmsg_check_sflags+0x199/0x1d0 net/sctp/socket.c:1778
 sctp_sendmsg+0x11c6/0x1840 net/sctp/socket.c:2018
 inet_sendmsg+0x5f/0x80 net/ipv4/af_inet.c:819
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0x38f/0x500 net/socket.c:2492
 ___sys_sendmsg net/socket.c:2546 [inline]
 __sys_sendmmsg+0x27c/0x4a0 net/socket.c:2632
 __do_sys_sendmmsg net/socket.c:2661 [inline]
 __se_sys_sendmmsg net/socket.c:2658 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2658
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

read to 0xffff888131091008 of 1 bytes by task 12440 on cpu 1:
 sctp_wait_for_connect+0x177/0x360 net/sctp/socket.c:9303
 __sctp_connect+0x707/0x780 net/sctp/socket.c:1244
 __sctp_setsockopt_connectx+0xa6/0xc0 net/sctp/socket.c:1333
 sctp_setsockopt_connectx net/sctp/socket.c:1360 [inline]
 sctp_setsockopt+0x7d1/0xc60 net/sctp/socket.c:4610
 sock_common_setsockopt+0x5d/0x70 net/core/sock.c:3581
 __sys_setsockopt+0x212/0x2b0 net/socket.c:2259
 __do_sys_setsockopt net/socket.c:2270 [inline]
 __se_sys_setsockopt net/socket.c:2267 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2267
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12440 Comm: syz-executor.2 Not tainted 5.18.0-syzkaller-11080-g664a393a2663-dirty #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
2022/05/29 08:49 upstream 664a393a2663 a46af346 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in sctp_association_free / sctp_wait_for_connect
2022/05/15 09:25 upstream 2fe1020d73ca 744a39e2 .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.