KCSAN: data-race in __inet6_bind / inet6_getname

4 views
Skip to first unread message

syzbot

unread,
Dec 11, 2020, 6:34:12 AM12/11/20
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: aae5ab85 Merge tag 'riscv-for-linus-5.10-rc6' of git://git..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1056dd1d500000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9b19d1bde60f8d
dashboard link: https://syzkaller.appspot.com/bug?extid=680a5b9b9368668287db
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project.git 913f6005669cfb590c99865a90bc51ed0983d09d)
CC: [and...@kernel.org a...@kernel.org b...@vger.kernel.org dan...@iogearbox.net da...@davemloft.net john.fa...@gmail.com ka...@fb.com kps...@chromium.org ku...@kernel.org kuz...@ms2.inr.ac.ru linux-...@vger.kernel.org net...@vger.kernel.org songliu...@fb.com y...@fb.com yosh...@linux-ipv6.org]

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+680a5b...@syzkaller.appspotmail.com

==================================================================
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
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Jan 3, 2021, 4:15:09 PM1/3/21
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages