syzbot


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

Status: auto-obsoleted due to no activity on 2024/08/15 02:20
Subsystems: sctp
[Documentation on labels]
First crash: 87d, last: 87d
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 180d 215d 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 1695d 1793d 0/28 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 861d 875d 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 607d 607d 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 1305d 1305d 0/28 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 549d 549d 0/28 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 1056d 1056d 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 1481d 1481d 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 462d 462d 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 0xffff88810beee008 of 1 bytes by task 18523 on cpu 1:
 sctp_association_free+0x14c/0x590 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+0x2afc/0x31a0 net/sctp/sm_sideeffect.c:1169
 sctp_primitive_SHUTDOWN+0x75/0x90 net/sctp/primitive.c:89
 sctp_close+0x26e/0x540 net/sctp/socket.c:1528
 inet_release+0xce/0xf0 net/ipv4/af_inet.c:437
 __sock_release net/socket.c:659 [inline]
 sock_close+0x68/0x150 net/socket.c:1421
 __fput+0x192/0x6f0 fs/file_table.c:422
 ____fput+0x15/0x20 fs/file_table.c:450
 task_work_run+0x13a/0x1a0 kernel/task_work.c:180
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0xbe/0x130 kernel/entry/common.c:218
 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88810beee008 of 1 bytes by task 18524 on cpu 0:
 sctp_wait_for_connect+0x179/0x360 net/sctp/socket.c:9334
 sctp_sendmsg_to_asoc+0xbca/0xbe0 net/sctp/socket.c:1885
 sctp_sendmsg+0x136f/0x1920 net/sctp/socket.c:2031
 inet_sendmsg+0xc5/0xd0 net/ipv4/af_inet.c:853
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0x102/0x180 net/socket.c:745
 __sys_sendto+0x1e5/0x260 net/socket.c:2192
 __do_sys_sendto net/socket.c:2204 [inline]
 __se_sys_sendto net/socket.c:2200 [inline]
 __x64_sys_sendto+0x78/0x90 net/socket.c:2200
 x64_sys_call+0x16d7/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:45
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 18524 Comm: syz.2.4250 Not tainted 6.10.0-rc7-syzkaller-00012-g34afb82a3c67 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/11 02:19 upstream 34afb82a3c67 6f7fa383 .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.