syzbot


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

Status: auto-obsoleted due to no activity on 2025/02/09 00:05
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+ad878f7158de844a3172@syzkaller.appspotmail.com
First crash: 107d, last: 88d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in exec_mmap / vms_clear_ptes mm 2 164d 164d 0/28 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 0xffff88810457b038 of 8 bytes by task 3288 on cpu 0:
 update_hiwater_rss include/linux/mm.h:2667 [inline]
 vms_clear_ptes+0x1a7/0x300 mm/vma.c:1135
 vms_complete_munmap_vmas+0x16c/0x470 mm/vma.c:1185
 do_vmi_align_munmap+0x344/0x390 mm/vma.c:1444
 do_vmi_munmap+0x1eb/0x230 mm/vma.c:1492
 __vm_munmap+0xfd/0x220 mm/mmap.c:1368
 __do_sys_munmap mm/mmap.c:1385 [inline]
 __se_sys_munmap mm/mmap.c:1382 [inline]
 __x64_sys_munmap+0x36/0x40 mm/mmap.c:1382
 x64_sys_call+0xe14/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:12
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88810457b038 of 8 bytes by task 10952 on cpu 1:
 get_mm_hiwater_rss include/linux/mm.h:2654 [inline]
 setmax_mm_hiwater_rss include/linux/mm.h:2684 [inline]
 exec_mmap+0x35c/0x4d0 fs/exec.c:1016
 begin_new_exec+0xaf9/0x10b0 fs/exec.c:1274
 load_elf_binary+0x63b/0x1a10 fs/binfmt_elf.c:1002
 search_binary_handler fs/exec.c:1748 [inline]
 exec_binprm fs/exec.c:1790 [inline]
 bprm_execve+0x4e6/0xc60 fs/exec.c:1842
 do_execveat_common+0x793/0x800 fs/exec.c:1949
 do_execve fs/exec.c:2023 [inline]
 __do_sys_execve fs/exec.c:2099 [inline]
 __se_sys_execve fs/exec.c:2094 [inline]
 __x64_sys_execve+0x5a/0x70 fs/exec.c:2094
 x64_sys_call+0x1333/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:60
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000002159 -> 0x0000000000002c0f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 10952 Comm: syz-executor Not tainted 6.13.0-rc2-syzkaller-00333-ga0e3919a2df2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/15 00:04 upstream a0e3919a2df2 7cbfbb3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / vms_clear_ptes
2024/12/02 23:29 upstream e70140ba0d2b b499ea68 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / vms_clear_ptes
2024/11/26 09:33 upstream 2c22dc1ee3a1 11dbc254 .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.