syzbot


KCSAN: data-race in __mmput / copy_mm

Status: moderation: reported on 2025/06/17 22:58
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+1648f0d2d2e03d560dfc@syzkaller.appspotmail.com
First crash: 15h56m, last: 15h56m

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __mmput / copy_mm

write to 0xffff888123dae2a8 of 8 bytes by task 22608 on cpu 1:
 __list_del include/linux/list.h:195 [inline]
 __list_del_entry include/linux/list.h:218 [inline]
 list_del include/linux/list.h:229 [inline]
 __mmput+0xe2/0x1c0 kernel/fork.c:1126
 mmput+0x40/0x50 kernel/fork.c:1144
 exit_mm+0xe4/0x190 kernel/exit.c:581
 do_exit+0x40b/0x1590 kernel/exit.c:943
 do_group_exit+0x139/0x140 kernel/exit.c:1104
 __do_sys_exit_group kernel/exit.c:1115 [inline]
 __se_sys_exit_group kernel/exit.c:1113 [inline]
 __x64_sys_exit_group+0x1f/0x20 kernel/exit.c:1113
 x64_sys_call+0x2fa4/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888123dae1c0 of 1408 bytes by task 13151 on cpu 0:
 dup_mm kernel/fork.c:1471 [inline]
 copy_mm+0xe2/0x370 kernel/fork.c:1529
 copy_process+0xcf1/0x1fe0 kernel/fork.c:2169
 kernel_clone+0x16c/0x5b0 kernel/fork.c:2599
 __do_sys_clone kernel/fork.c:2742 [inline]
 __se_sys_clone kernel/fork.c:2726 [inline]
 __x64_sys_clone+0xe6/0x120 kernel/fork.c:2726
 x64_sys_call+0x2c59/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:57
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 13151 Comm: syz-executor Not tainted 6.16.0-rc2-syzkaller-00045-g4663747812d1 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/17 22:57 upstream 4663747812d1 e77fae15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mmput / copy_mm
* Struck through repros no longer work on HEAD.