syzbot


KCSAN: data-race in exec_mmap / vms_clear_ptes (4)

Status: moderation: reported on 2025/09/06 09:36
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+60c113c7a4fe5249bffa@syzkaller.appspotmail.com
First crash: 1d04h, last: 1d04h
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in exec_mmap / vms_clear_ptes (3) mm 6 3 99d 146d 0/29 auto-obsoleted due to no activity on 2025/07/26 06:00
upstream KCSAN: data-race in exec_mmap / vms_clear_ptes (2) mm 6 3 266d 285d 0/29 auto-obsoleted due to no activity on 2025/02/09 00:05
upstream KCSAN: data-race in exec_mmap / vms_clear_ptes mm 6 2 342d 342d 0/29 auto-obsoleted due to no activity on 2024/11/03 23:18

Sample crash report:
==================================================================
BUG: KCSAN: data-race in exec_mmap / vms_clear_ptes

write to 0xffff888102715798 of 8 bytes by task 3294 on cpu 0:
 update_hiwater_rss include/linux/mm.h:2657 [inline]
 vms_clear_ptes+0x18f/0x2d0 mm/vma.c:1227
 vms_complete_munmap_vmas+0x159/0x440 mm/vma.c:1277
 do_vmi_align_munmap+0x383/0x3d0 mm/vma.c:1536
 do_vmi_munmap+0x1db/0x220 mm/vma.c:1584
 __vm_munmap+0x1a1/0x280 mm/vma.c:3155
 __do_sys_munmap mm/mmap.c:1080 [inline]
 __se_sys_munmap mm/mmap.c:1077 [inline]
 __x64_sys_munmap+0x36/0x50 mm/mmap.c:1077
 x64_sys_call+0x9c0/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:12
 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 0xffff888102715798 of 8 bytes by task 21747 on cpu 1:
 get_mm_hiwater_rss include/linux/mm.h:2644 [inline]
 setmax_mm_hiwater_rss include/linux/mm.h:2674 [inline]
 exec_mmap+0x365/0x4d0 fs/exec.c:899
 begin_new_exec+0xb6b/0x1160 fs/exec.c:1156
 load_elf_binary+0x62b/0x1a20 fs/binfmt_elf.c:995
 search_binary_handler fs/exec.c:1670 [inline]
 exec_binprm fs/exec.c:1702 [inline]
 bprm_execve+0x474/0x970 fs/exec.c:1754
 do_execveat_common+0x6e6/0x750 fs/exec.c:1860
 do_execve fs/exec.c:1934 [inline]
 __do_sys_execve fs/exec.c:2010 [inline]
 __se_sys_execve fs/exec.c:2005 [inline]
 __x64_sys_execve+0x5c/0x70 fs/exec.c:2005
 x64_sys_call+0x2716/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:60
 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

value changed: 0x0000000000002279 -> 0x0000000000002299

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 21747 Comm: syz-executor Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/06 09:36 upstream d1d10cea0895 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / vms_clear_ptes
* Struck through repros no longer work on HEAD.