syzbot


KCSAN: data-race in exec_mmap / unmap_region (5)

Status: auto-obsoleted due to no activity on 2023/10/26 20:01
Subsystems: mm
[Documentation on labels]
First crash: 251d, last: 237d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in exec_mmap / unmap_region (2) mm 3 758d 777d 0/26 auto-closed as invalid on 2022/05/23 08:59
upstream KCSAN: data-race in exec_mmap / unmap_region (6) mm 1 95d 95d 0/26 auto-obsoleted due to no activity on 2024/03/17 03:23
upstream KCSAN: data-race in exec_mmap / unmap_region mm 11 818d 916d 0/26 auto-closed as invalid on 2022/03/24 07:45
upstream KCSAN: data-race in exec_mmap / unmap_region (4) mm 9 527d 616d 0/26 auto-obsoleted due to no activity on 2023/01/17 08:49
upstream KCSAN: data-race in exec_mmap / unmap_region (3) mm 6 659d 707d 0/26 auto-closed as invalid on 2022/08/31 04:19

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

write to 0xffff888103fae5b0 of 8 bytes by task 2814 on cpu 0:
 update_hiwater_rss include/linux/mm.h:2608 [inline]
 unmap_region+0x105/0x210 mm/mmap.c:2312
 do_vmi_align_munmap+0x61c/0x970 mm/mmap.c:2555
 do_vmi_munmap+0x1ea/0x230 mm/mmap.c:2623
 __vm_munmap+0xf8/0x1e0 mm/mmap.c:2908
 __do_sys_munmap mm/mmap.c:2925 [inline]
 __se_sys_munmap mm/mmap.c:2922 [inline]
 __x64_sys_munmap+0x36/0x40 mm/mmap.c:2922
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888103fae5b0 of 8 bytes by task 30739 on cpu 1:
 get_mm_hiwater_rss include/linux/mm.h:2595 [inline]
 setmax_mm_hiwater_rss include/linux/mm.h:2625 [inline]
 exec_mmap+0x2b7/0x430 fs/exec.c:1035
 begin_new_exec+0x6b4/0xf20 fs/exec.c:1296
 load_elf_binary+0x647/0x1960 fs/binfmt_elf.c:1001
 search_binary_handler fs/exec.c:1739 [inline]
 exec_binprm fs/exec.c:1781 [inline]
 bprm_execve+0x6d3/0xef0 fs/exec.c:1856
 do_execveat_common+0x75f/0x7d0 fs/exec.c:1964
 do_execve fs/exec.c:2038 [inline]
 __do_sys_execve fs/exec.c:2114 [inline]
 __se_sys_execve fs/exec.c:2109 [inline]
 __x64_sys_execve+0x5a/0x70 fs/exec.c:2109
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000000227 -> 0x0000000000000247

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 30739 Comm: dhcpcd Not tainted 6.6.0-rc2-syzkaller-00143-gb5cbe7c00aa0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/21 19:59 upstream b5cbe7c00aa0 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / unmap_region
2023/09/07 23:29 upstream 4a0fc73da97e 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / unmap_region
* Struck through repros no longer work on HEAD.