syzbot


KCSAN: data-race in find_alive_thread / futex_wait_queue_me

Status: auto-closed as invalid on 2020/02/14 19:06
Subsystems: kernel
[Documentation on labels]
First crash: 2103d, last: 2096d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in find_alive_thread / futex_wait_queue_me (2) kernel 6 1 2019d 2019d 0/29 auto-closed as invalid on 2020/05/01 04:18
upstream KCSAN: data-race in find_alive_thread / futex_wait_queue_me (3) kernel 6 1 1948d 1948d 0/29 closed as invalid on 2020/06/18 14:24

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

read to 0xffff88810ea6f024 of 4 bytes by task 7230 on cpu 1:
 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
 get_signal+0x2a2/0x1320 kernel/signal.c:2734
 do_signal+0x2f/0x6c0 arch/x86/kernel/signal.c:815
 exit_to_usermode_loop+0x250/0x2c0 arch/x86/entry/common.c:159
 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:274 [inline]
 do_syscall_64+0x353/0x370 arch/x86/entry/common.c:300
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff88810ea6f024 of 4 bytes by task 7251 on cpu 0:
 freezer_count include/linux/freezer.h:121 [inline]
 freezable_schedule include/linux/freezer.h:173 [inline]
 futex_wait_queue_me+0x1a2/0x290 kernel/futex.c:2627
 futex_wait+0x19b/0x3f0 kernel/futex.c:2733
 do_futex+0xe9/0x18d0 kernel/futex.c:3644
 __do_sys_futex kernel/futex.c:3705 [inline]
 __se_sys_futex kernel/futex.c:3673 [inline]
 __x64_sys_futex+0x2cd/0x3f0 kernel/futex.c:3673
 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: 0 PID: 7251 Comm: syz-executor.5 Not tainted 5.4.0-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
2019/12/06 19:01 https://github.com/google/ktsan.git kcsan ef798c30ba4e 85f26751 .config console log report ci2-upstream-kcsan-gce
2019/11/29 19:15 https://github.com/google/ktsan.git kcsan ef798c30ba4e 4f7e1d0f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.