syzbot


KCSAN: data-race in kernel_clone / mm_release (3)

Status: auto-closed as invalid on 2022/04/08 03:37
Subsystems: kernel
[Documentation on labels]
First crash: 1061d, last: 1061d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in kernel_clone / mm_release (2) kernel 3 1188d 1208d 0/28 auto-closed as invalid on 2021/12/02 09:15
upstream KCSAN: data-race in kernel_clone / mm_release kernel 4 1277d 1329d 0/28 auto-closed as invalid on 2021/09/04 13:36
upstream KCSAN: data-race in kernel_clone / mm_release (4) kernel 1 901d 901d 0/28 auto-closed as invalid on 2022/09/15 13:45

Sample crash report:
==================================================================
BUG: KCSAN: data-race in kernel_clone / mm_release

write to 0xffff88812e996dd0 of 8 bytes by task 27464 on cpu 0:
 wait_for_vfork_done kernel/fork.c:1360 [inline]
 kernel_clone+0x361/0x6a0 kernel/fork.c:2596
 __do_sys_clone3 kernel/fork.c:2840 [inline]
 __se_sys_clone3+0x1b5/0x1f0 kernel/fork.c:2824
 __x64_sys_clone3+0x2d/0x40 kernel/fork.c:2824
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812e996dd0 of 8 bytes by task 27465 on cpu 1:
 mm_release+0x125/0x1b0 kernel/fork.c:1410
 exit_mm_release+0x21/0x30 kernel/fork.c:1417
 exit_mm+0x38/0x170 kernel/exit.c:479
 do_exit+0x569/0x16a0 kernel/exit.c:793
 do_group_exit+0xa5/0x160 kernel/exit.c:935
 get_signal+0x8cf/0x15b0 kernel/signal.c:2863
 arch_do_signal_or_restart+0x8c/0x2e0 arch/x86/kernel/signal.c:868
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x113/0x190 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300
 ret_from_fork+0x15/0x30

value changed: 0xffffc9000187bd70 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 27465 Comm: syz-executor.5 Not tainted 5.17.0-rc6-syzkaller-00184-g38f80f42147f-dirty #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
2022/03/04 03:33 upstream 38f80f42147f 45a13a73 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in kernel_clone / mm_release
* Struck through repros no longer work on HEAD.