syzbot


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

Status: auto-closed as invalid on 2021/04/15 05:09
Subsystems: sctp
[Documentation on labels]
First crash: 1142d, last: 1142d
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 17d 53d 0/26 moderation: reported on 2024/03/04 15:29
upstream KCSAN: data-race in sctp_association_free / sctp_wait_for_connect sctp 8 1532d 1630d 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 698d 712d 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 444d 444d 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 (7) sctp 1 386d 386d 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 894d 894d 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 1319d 1319d 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 299d 299d 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 0xffff888013a9401c of 1 bytes by task 1001 on cpu 1:
 sctp_association_free+0x153/0x560 net/sctp/associola.c:338
 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:930 [inline]
 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1318 [inline]
 sctp_side_effects net/sctp/sm_sideeffect.c:1185 [inline]
 sctp_do_sm+0x2a1d/0x3110 net/sctp/sm_sideeffect.c:1156
 sctp_primitive_SHUTDOWN+0x71/0x80 net/sctp/primitive.c:89
 sctp_shutdown+0xad/0xd0 net/sctp/socket.c:5084
 inet_shutdown+0x17b/0x200 net/ipv4/af_inet.c:893
 __sys_shutdown_sock net/socket.c:2189 [inline]
 __sys_shutdown net/socket.c:2201 [inline]
 __do_sys_shutdown net/socket.c:2209 [inline]
 __se_sys_shutdown+0xf6/0x140 net/socket.c:2207
 __x64_sys_shutdown+0x2d/0x40 net/socket.c:2207
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888013a9401c of 1 bytes by task 997 on cpu 0:
 sctp_wait_for_connect+0x177/0x360 net/sctp/socket.c:9166
 __sctp_connect+0x94f/0xa50 net/sctp/socket.c:1230
 sctp_connect net/sctp/socket.c:4730 [inline]
 sctp_inet_connect+0xe1/0x100 net/sctp/socket.c:4745
 __sys_connect_file net/socket.c:1837 [inline]
 __sys_connect+0x245/0x280 net/socket.c:1854
 __do_sys_connect net/socket.c:1864 [inline]
 __se_sys_connect net/socket.c:1861 [inline]
 __x64_sys_connect+0x3d/0x50 net/socket.c:1861
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 997 Comm: syz-executor.1 Not tainted 5.12.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/11 05:08 upstream a74e6a014c9d c2ca1f2a .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.