syzbot


KCSAN: data-race in inet6_getname / sctp_do_bind (2)

Status: auto-closed as invalid on 2021/03/10 06:45
Subsystems: sctp
[Documentation on labels]
First crash: 1177d, last: 1177d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in inet6_getname / sctp_do_bind sctp 2 1332d 1349d 0/26 auto-closed as invalid on 2020/10/05 19:48
upstream KCSAN: data-race in inet6_getname / sctp_do_bind (3) sctp 1 1109d 1109d 0/26 auto-closed as invalid on 2021/05/17 11:26

Sample crash report:
==================================================================
BUG: KCSAN: data-race in inet6_getname / sctp_do_bind

write to 0xffff8880698ac4c8 of 2 bytes by task 10468 on cpu 0:
 sctp_do_bind+0x45d/0x4a0 net/sctp/socket.c:435
 sctp_bind+0x6a/0x80 net/sctp/socket.c:317
 inet6_bind+0x56/0xf0 net/ipv6/af_inet6.c:446
 __sys_bind+0x200/0x290 net/socket.c:1635
 __do_sys_bind net/socket.c:1646 [inline]
 __se_sys_bind net/socket.c:1644 [inline]
 __x64_sys_bind+0x3d/0x50 net/socket.c:1644
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880698ac4c8 of 2 bytes by task 10469 on cpu 1:
 inet6_getname+0x190/0x300 net/ipv6/af_inet6.c:535
 sctp_getname+0x20/0x200 net/sctp/ipv6.c:1025
 tomoyo_socket_listen_permission+0xdd/0x190 security/tomoyo/network.c:661
 tomoyo_socket_listen+0x11/0x20 security/tomoyo/tomoyo.c:435
 security_socket_listen+0x42/0x90 security/security.c:2131
 __sys_listen+0xe8/0x180 net/socket.c:1667
 __do_sys_listen net/socket.c:1678 [inline]
 __se_sys_listen net/socket.c:1676 [inline]
 __x64_sys_listen+0x29/0x30 net/socket.c:1676
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10469 Comm: syz-executor.4 Not tainted 5.11.0-rc6-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/02/03 06:45 upstream 3aaf0a27ffc2 624dad51 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in inet6_getname / sctp_do_bind
* Struck through repros no longer work on HEAD.