syzbot


KCSAN: data-race in acct_collect / do_exit

Status: auto-closed as invalid on 2020/09/11 14:08
Subsystems: kernel
[Documentation on labels]
First crash: 1357d, last: 1357d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in acct_collect / do_exit (3) kernel 34 904d 1137d 0/26 auto-closed as invalid on 2021/12/08 08:08
upstream KCSAN: data-race in acct_collect / do_exit (4) kernel 1 673d 673d 0/26 auto-closed as invalid on 2022/07/27 14:33
upstream KCSAN: data-race in acct_collect / do_exit (2) kernel 4 1222d 1235d 0/26 auto-closed as invalid on 2021/01/24 15:31

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

write to 0xffff888212e104bc of 4 bytes by task 32301 on cpu 1:
 reparent_leader kernel/exit.c:582 [inline]
 forget_original_parent kernel/exit.c:634 [inline]
 exit_notify kernel/exit.c:650 [inline]
 do_exit+0xbae/0x16a0 kernel/exit.c:826
 do_group_exit+0xcb/0x180 kernel/exit.c:903
 get_signal+0x106d/0x1650 kernel/signal.c:2743
 arch_do_signal+0x25/0x270 arch/x86/kernel/signal.c:811
 exit_to_user_mode_loop kernel/entry/common.c:135 [inline]
 exit_to_user_mode_prepare+0x12d/0x220 kernel/entry/common.c:166
 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:241
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888212e104bc of 4 bytes by task 32336 on cpu 0:
 thread_group_leader include/linux/sched/signal.h:654 [inline]
 acct_collect+0x149/0x3a0 kernel/acct.c:556
 do_exit+0x3ba/0x16a0 kernel/exit.c:785
 do_group_exit+0xcb/0x180 kernel/exit.c:903
 get_signal+0x106d/0x1650 kernel/signal.c:2743
 arch_do_signal+0x25/0x270 arch/x86/kernel/signal.c:811
 exit_to_user_mode_loop kernel/entry/common.c:135 [inline]
 exit_to_user_mode_prepare+0x12d/0x220 kernel/entry/common.c:166
 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:241
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 32336 Comm: syz-executor.3 Not tainted 5.8.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
2020/08/07 13:58 upstream 86cfccb66937 28ac5c9e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.