syzbot


KCSAN: data-race in copy_mm / dup_mmap (2)

Status: moderation: reported on 2025/09/12 16:48
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+e0c8204e48baf95c2067@syzkaller.appspotmail.com
First crash: 8h50m, last: 8h50m
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in copy_mm / dup_mmap mm 6 1 89d 89d 0/29 auto-obsoleted due to no activity on 2025/08/10 08:41

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

read-write to 0xffff888109f473f8 of 4 bytes by task 8792 on cpu 1:
 do_raw_write_seqcount_begin include/linux/seqlock.h:431 [inline]
 mm_lock_seqcount_begin include/linux/mmap_lock.h:88 [inline]
 mmap_write_lock_killable include/linux/mmap_lock.h:417 [inline]
 dup_mmap+0xd8/0xf20 mm/mmap.c:1727
 dup_mm kernel/fork.c:1485 [inline]
 copy_mm+0x11a/0x370 kernel/fork.c:1537
 copy_process+0xd08/0x2000 kernel/fork.c:2175
 kernel_clone+0x16c/0x5c0 kernel/fork.c:2605
 __do_sys_clone kernel/fork.c:2748 [inline]
 __se_sys_clone kernel/fork.c:2732 [inline]
 __x64_sys_clone+0xe6/0x120 kernel/fork.c:2732
 x64_sys_call+0x119c/0x2ff0 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

read to 0xffff888109f47300 of 1408 bytes by task 8791 on cpu 0:
 dup_mm kernel/fork.c:1479 [inline]
 copy_mm+0xe2/0x370 kernel/fork.c:1537
 copy_process+0xd08/0x2000 kernel/fork.c:2175
 kernel_clone+0x16c/0x5c0 kernel/fork.c:2605
 __do_sys_clone kernel/fork.c:2748 [inline]
 __se_sys_clone kernel/fork.c:2732 [inline]
 __x64_sys_clone+0xe6/0x120 kernel/fork.c:2732
 x64_sys_call+0x119c/0x2ff0 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: 8791 Comm: syz.0.2020 Not tainted syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
==================================================================
lo speed is unknown, defaulting to 1000
lo speed is unknown, defaulting to 1000

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/12 16:47 upstream 320475fbd590 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in copy_mm / dup_mmap
* Struck through repros no longer work on HEAD.