syzbot


KCSAN: data-race in do_exit / getrusage

Status: auto-closed as invalid on 2021/10/22 05:39
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 442d, last: 442d

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

write to 0xffff888151293888 of 8 bytes by task 18836 on cpu 1:
 setmax_mm_hiwater_rss include/linux/mm.h:2013 [inline]
 do_exit+0x36d/0x14a0 kernel/exit.c:802
 do_group_exit+0x19b/0x1a0 kernel/exit.c:922
 __do_sys_exit_group+0xb/0x10 kernel/exit.c:933
 __se_sys_exit_group+0x5/0x10 kernel/exit.c:931
 __x64_sys_exit_group+0x16/0x20 kernel/exit.c:931
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888151293888 of 8 bytes by task 18819 on cpu 0:
 getrusage+0x6f6/0xa70 kernel/sys.c:1787
 wait_task_zombie kernel/exit.c:1089 [inline]
 wait_consider_task+0xfe6/0x1a10 kernel/exit.c:1334
 do_wait_pid kernel/exit.c:1474 [inline]
 do_wait+0x447/0x640 kernel/exit.c:1507
 kernel_wait4+0x14b/0x1b0 kernel/exit.c:1677
 __do_sys_wait4 kernel/exit.c:1705 [inline]
 __se_sys_wait4 kernel/exit.c:1701 [inline]
 __x64_sys_wait4+0x90/0x120 kernel/exit.c:1701
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000000 -> 0x000000000000233c

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 18819 Comm: syz-executor.3 Tainted: G        W         5.15.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/09/17 05:32 upstream bdb575f87217 5b989942 .config log report info KCSAN: data-race in do_exit / getrusage
* Struck through repros no longer work on HEAD.