================================================================== BUG: KCSAN: data-race in sctp_do_sm / sctp_wait_for_connect write to 0xffff888107c68228 of 4 bytes by task 7278 on cpu 0: sctp_cmd_new_state net/sctp/sm_sideeffect.c:872 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1334 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline] sctp_do_sm+0xcfe/0x2ed0 net/sctp/sm_sideeffect.c:1170 sctp_primitive_SHUTDOWN+0x71/0x80 net/sctp/primitive.c:89 sctp_close+0x277/0x550 net/sctp/socket.c:1526 inet_release+0xc6/0xe0 net/ipv4/af_inet.c:428 inet6_release+0x3a/0x50 net/ipv6/af_inet6.c:489 __sock_release net/socket.c:650 [inline] sock_close+0x6c/0x150 net/socket.c:1365 __fput+0x245/0x570 fs/file_table.c:320 ____fput+0x11/0x20 fs/file_table.c:348 task_work_run+0xde/0x110 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:171 exit_to_user_mode_prepare kernel/entry/common.c:203 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:296 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888107c68228 of 4 bytes by task 7277 on cpu 1: sctp_wait_for_connect+0x14f/0x360 net/sctp/socket.c:9305 sctp_sendmsg_to_asoc+0xb7d/0xb90 net/sctp/socket.c:1879 sctp_sendmsg+0x1280/0x1840 net/sctp/socket.c:2025 inet_sendmsg+0x5f/0x80 net/ipv4/af_inet.c:827 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg net/socket.c:734 [inline] __sys_sendto+0x22d/0x2d0 net/socket.c:2117 __do_sys_sendto net/socket.c:2129 [inline] __se_sys_sendto net/socket.c:2125 [inline] __x64_sys_sendto+0x74/0x90 net/socket.c:2125 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+0x63/0xcd value changed: 0x00000001 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 7277 Comm: syz-executor.3 Not tainted 6.2.0-rc2-syzkaller-00057-g41c03ba9beea-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 ==================================================================