syzbot


KCSAN: data-race in inet6_getname / sctp_do_bind

Status: auto-closed as invalid on 2020/10/05 19:48
Subsystems: sctp
[Documentation on labels]
First crash: 1347d, last: 1331d
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 (2) sctp 1 1175d 1175d 0/26 auto-closed as invalid on 2021/03/10 06:45
upstream KCSAN: data-race in inet6_getname / sctp_do_bind (3) sctp 1 1107d 1107d 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 0xffff888097f4a448 of 2 bytes by task 28127 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/0xd0 net/ipv6/af_inet6.c:446
 __sys_bind+0x1fd/0x2a0 net/socket.c:1656
 __do_sys_bind net/socket.c:1667 [inline]
 __se_sys_bind net/socket.c:1665 [inline]
 __x64_sys_bind+0x3d/0x50 net/socket.c:1665
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888097f4a448 of 2 bytes by task 28130 on cpu 1:
 inet6_getname+0x190/0x310 net/ipv6/af_inet6.c:535
 sctp_getname+0x20/0x200 net/sctp/ipv6.c:1004
 tomoyo_socket_listen_permission+0x11a/0x1c0 security/tomoyo/network.c:661
 tomoyo_socket_listen+0x11/0x20 security/tomoyo/tomoyo.c:435
 security_socket_listen+0x42/0x90 security/security.c:2114
 __sys_listen+0xec/0x180 net/socket.c:1688
 __do_sys_listen net/socket.c:1699 [inline]
 __se_sys_listen net/socket.c:1697 [inline]
 __x64_sys_listen+0x29/0x30 net/socket.c:1697
 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: 28130 Comm: syz-executor.5 Not tainted 5.9.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/31 19:36 upstream f75aef392f86 d5a3ae1f .config console log report ci2-upstream-kcsan-gce
2020/08/15 02:23 upstream c9c9735c46f5 5ce13532 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.