syzbot


KCSAN: data-race in find_alive_thread / unix_stream_read_generic

Status: auto-closed as invalid on 2020/02/10 09:37
Subsystems: kernel
[Documentation on labels]
First crash: 1607d, last: 1607d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in find_alive_thread / unix_stream_read_generic

read to 0xffff888121c35064 of 4 bytes by task 9442 on cpu 0:
 find_alive_thread+0xdd/0x130 kernel/exit.c:495
 find_new_reaper kernel/exit.c:548 [inline]
 forget_original_parent kernel/exit.c:623 [inline]
 exit_notify kernel/exit.c:656 [inline]
 do_exit+0x67c/0x18f0 kernel/exit.c:838
 do_group_exit+0xb4/0x1c0 kernel/exit.c:921
 __do_sys_exit_group kernel/exit.c:932 [inline]
 __se_sys_exit_group kernel/exit.c:930 [inline]
 __x64_sys_exit_group+0x2e/0x30 kernel/exit.c:930
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff888121c35064 of 4 bytes by task 9448 on cpu 1:
 freezer_count include/linux/freezer.h:121 [inline]
 freezable_schedule_timeout include/linux/freezer.h:193 [inline]
 unix_stream_data_wait net/unix/af_unix.c:2160 [inline]
 unix_stream_read_generic+0xbaf/0x1360 net/unix/af_unix.c:2268
 unix_stream_recvmsg+0xb1/0xe0 net/unix/af_unix.c:2411
 sock_recvmsg_nosec net/socket.c:871 [inline]
 sock_recvmsg net/socket.c:889 [inline]
 sock_recvmsg+0x92/0xb0 net/socket.c:885
 ___sys_recvmsg+0x1a0/0x3e0 net/socket.c:2480
 do_recvmmsg+0x19a/0x5c0 net/socket.c:2601
 __sys_recvmmsg+0x1ef/0x200 net/socket.c:2680
 __do_sys_recvmmsg net/socket.c:2703 [inline]
 __se_sys_recvmmsg net/socket.c:2696 [inline]
 __x64_sys_recvmmsg+0x89/0xb0 net/socket.c:2696
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 9448 Comm: syz-executor.4 Not tainted 5.4.0-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
2019/12/02 09:37 https://github.com/google/ktsan.git kcsan ef798c30ba4e f879db37 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.