syzbot


KCSAN: data-race in copy_mm / vma_complete

Status: moderation: reported on 2025/07/10 07:42
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+5c8b83125b441768bb5f@syzkaller.appspotmail.com
First crash: 4d19h, last: 4d19h

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

read-write to 0xffff88810bcce930 of 4 bytes by task 9214 on cpu 0:
 vma_complete+0x13f/0x580 mm/vma.c:352
 __split_vma+0x5d9/0x650 mm/vma.c:565
 split_vma mm/vma.c:595 [inline]
 vma_modify+0x3f2/0xc80 mm/vma.c:1626
 vma_modify_flags+0x101/0x130 mm/vma.c:1644
 mprotect_fixup+0x2cc/0x570 mm/mprotect.c:658
 do_mprotect_pkey+0x6d6/0x980 mm/mprotect.c:832
 __do_sys_mprotect mm/mprotect.c:853 [inline]
 __se_sys_mprotect mm/mprotect.c:850 [inline]
 __x64_sys_mprotect+0x48/0x60 mm/mprotect.c:850
 x64_sys_call+0x2794/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:11
 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 0xffff88810bcce880 of 1344 bytes by task 9216 on cpu 1:
 dup_mm kernel/fork.c:1471 [inline]
 copy_mm+0xe2/0x370 kernel/fork.c:1529
 copy_process+0xcf1/0x1f90 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: 1 UID: 0 PID: 9216 Comm: syz.3.2155 Not tainted 6.16.0-rc5-syzkaller-00053-g8c2e52ebbe88 #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/07/10 07:42 upstream 8c2e52ebbe88 956bd956 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in copy_mm / vma_complete
* Struck through repros no longer work on HEAD.