syzbot


KCSAN: data-race in do_exit / exit_mm

Status: auto-closed as invalid on 2020/08/22 07:37
Subsystems: kernel
[Documentation on labels]
First crash: 1677d, last: 1655d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_exit / exit_mm (3) kernel 1 1339d 1339d 0/28 auto-closed as invalid on 2021/07/04 07:25
upstream KCSAN: data-race in do_exit / exit_mm (2) kernel 1 1593d 1593d 0/28 auto-closed as invalid on 2020/10/23 06:15

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_exit / exit_mm

write to 0xffff888042187064 of 4 bytes by task 30052 on cpu 1:
 freezer_count include/linux/freezer.h:121 [inline]
 freezable_schedule include/linux/freezer.h:173 [inline]
 exit_mm+0x18c/0x330 kernel/exit.c:468
 do_exit+0x415/0x16e0 kernel/exit.c:792
 do_group_exit+0xcb/0x180 kernel/exit.c:903
 get_signal+0x106d/0x1650 kernel/signal.c:2743
 do_signal+0x25/0x270 arch/x86/kernel/signal.c:810
 exit_to_usermode_loop arch/x86/entry/common.c:235 [inline]
 __prepare_exit_to_usermode+0x127/0x230 arch/x86/entry/common.c:269
 __syscall_return_slowpath+0x47/0x60 arch/x86/entry/common.c:352
 syscall_return_slowpath+0x5/0x20 arch/x86/entry/common.c:362
 ret_from_fork+0x15/0x30 arch/x86/entry/entry_64.S:286

read to 0xffff888042187064 of 4 bytes by task 30043 on cpu 0:
 find_alive_thread kernel/exit.c:492 [inline]
 find_new_reaper kernel/exit.c:541 [inline]
 forget_original_parent kernel/exit.c:616 [inline]
 exit_notify kernel/exit.c:649 [inline]
 do_exit+0x810/0x16e0 kernel/exit.c:826
 do_group_exit+0xcb/0x180 kernel/exit.c:903
 get_signal+0x106d/0x1650 kernel/signal.c:2743
 do_signal+0x25/0x270 arch/x86/kernel/signal.c:810
 exit_to_usermode_loop arch/x86/entry/common.c:235 [inline]
 __prepare_exit_to_usermode+0x127/0x230 arch/x86/entry/common.c:269
 __syscall_return_slowpath+0x47/0x60 arch/x86/entry/common.c:352
 do_syscall_64+0x5d/0xb0 arch/x86/entry/common.c:393
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 30043 Comm: syz-executor.5 Not tainted 5.8.0-rc5-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/07/18 07:29 upstream 6a70f89cc58f 9c812472 .config console log report ci2-upstream-kcsan-gce
2020/06/26 05:23 upstream 4a21185cda0f aea82c00 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.