syzbot


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

Status: auto-obsoleted due to no activity on 2023/08/06 09:15
Subsystems: sctp
[Documentation on labels]
First crash: 304d, last: 304d
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 23d 58d 0/26 moderation: reported on 2024/03/04 15:29
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect sctp 8 1537d 1636d 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 703d 717d 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 449d 449d 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 1147d 1147d 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 392d 392d 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 899d 899d 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 1324d 1324d 0/26 auto-closed as invalid on 2020/10/20 15:22

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

write to 0xffff888154983008 of 1 bytes by task 24927 on cpu 0:
 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:1330 [inline]
 sctp_side_effects net/sctp/sm_sideeffect.c:1198 [inline]
 sctp_do_sm+0x2b39/0x31b0 net/sctp/sm_sideeffect.c:1169
 sctp_primitive_SHUTDOWN+0x75/0x90 net/sctp/primitive.c:89
 sctp_close+0x26e/0x540 net/sctp/socket.c:1527
 inet_release+0xc9/0xf0 net/ipv4/af_inet.c:427
 __sock_release net/socket.c:654 [inline]
 sock_close+0x70/0x150 net/socket.c:1386
 __fput+0x303/0x600 fs/file_table.c:378
 ____fput+0x15/0x20 fs/file_table.c:406
 task_work_run+0x135/0x1a0 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xd1/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888154983008 of 1 bytes by task 24908 on cpu 1:
 sctp_wait_for_connect+0x178/0x350 net/sctp/socket.c:9330
 sctp_sendmsg_to_asoc+0xbf6/0xc00 net/sctp/socket.c:1884
 sctp_sendmsg+0x134e/0x1900 net/sctp/socket.c:2030
 inet_sendmsg+0x63/0x80 net/ipv4/af_inet.c:830
 sock_sendmsg_nosec net/socket.c:725 [inline]
 sock_sendmsg net/socket.c:748 [inline]
 __sys_sendto+0x257/0x310 net/socket.c:2134
 __do_sys_sendto net/socket.c:2146 [inline]
 __se_sys_sendto net/socket.c:2142 [inline]
 __x64_sys_sendto+0x78/0x90 net/socket.c:2142
 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: 1 PID: 24908 Comm: syz-executor.5 Not tainted 6.4.0-syzkaller-10096-gdfab92f27c60 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/02 09:12 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in sctp_association_free / sctp_wait_for_connect
* Struck through repros no longer work on HEAD.