================================================================== BUG: KCSAN: data-race in sctp_association_free / sctp_wait_for_connect read to 0xffff8880a551801c of 1 bytes by task 28012 on cpu 0: sctp_wait_for_connect+0x19d/0x330 net/sctp/socket.c:9271 __sctp_connect+0x5af/0x670 net/sctp/socket.c:1226 __sctp_setsockopt_connectx+0x103/0x150 net/sctp/socket.c:1322 sctp_setsockopt_connectx net/sctp/socket.c:1354 [inline] sctp_setsockopt net/sctp/socket.c:4700 [inline] sctp_setsockopt+0x170d/0x5230 net/sctp/socket.c:4657 sock_common_setsockopt+0x67/0x90 net/core/sock.c:3149 __sys_setsockopt+0x1ce/0x370 net/socket.c:2117 __do_sys_setsockopt net/socket.c:2133 [inline] __se_sys_setsockopt net/socket.c:2130 [inline] __x64_sys_setsockopt+0x70/0x90 net/socket.c:2130 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff8880a551801c of 1 bytes by task 28007 on cpu 1: sctp_association_free+0x101/0x480 net/sctp/associola.c:336 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:934 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1322 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1189 [inline] sctp_do_sm+0x277f/0x2f10 net/sctp/sm_sideeffect.c:1160 sctp_primitive_SHUTDOWN+0x7b/0xa0 net/sctp/primitive.c:89 sctp_close+0x2a2/0x5e0 net/sctp/socket.c:1515 inet_release+0x86/0x100 net/ipv4/af_inet.c:427 inet6_release+0x4a/0x70 net/ipv6/af_inet6.c:470 __sock_release+0x85/0x160 net/socket.c:592 sock_close+0x24/0x30 net/socket.c:1270 __fput+0x1e1/0x520 fs/file_table.c:280 ____fput+0x1f/0x30 fs/file_table.c:313 task_work_run+0xf6/0x130 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath arch/x86/entry/common.c:278 [inline] do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 28007 Comm: syz-executor.0 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================