syzbot


KCSAN: data-race in __inet6_bind / inet6_getname

Status: auto-closed as invalid on 2021/01/03 21:15
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+680a5b9b9368668287db@syzkaller.appspotmail.com
First crash: 1243d, last: 1243d

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

write to 0xffff88810a15ecc8 of 2 bytes by task 28917 on cpu 0:
 __inet6_bind+0x950/0xb00 net/ipv6/af_inet6.c:426
 inet6_bind+0xb3/0xd0 net/ipv6/af_inet6.c:458
 __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 0xffff88810a15ecc8 of 2 bytes by task 28920 on cpu 1:
 inet6_getname+0x190/0x300 net/ipv6/af_inet6.c:535
 tomoyo_socket_listen_permission+0xd9/0x180 security/tomoyo/network.c:661
 tomoyo_socket_listen+0x11/0x20 security/tomoyo/tomoyo.c:435
 security_socket_listen+0x42/0x90 security/security.c:2130
 __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: 28920 Comm: syz-executor.4 Not tainted 5.10.0-rc5-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
2020/11/29 21:14 upstream aae5ab854e38 a0092f9d .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.