syzbot


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

Status: auto-obsoleted due to no activity on 2024/03/17 03:23
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+715f89eac10cebda32df@syzkaller.appspotmail.com
First crash: 319d, last: 319d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in exec_mmap / unmap_region (2) mm 3 983d 1001d 0/28 auto-closed as invalid on 2022/05/23 08:59
upstream KCSAN: data-race in exec_mmap / unmap_region (5) mm 2 461d 475d 0/28 auto-obsoleted due to no activity on 2023/10/26 20:01
upstream KCSAN: data-race in exec_mmap / unmap_region (7) mm 1 99d 99d 0/28 auto-obsoleted due to no activity on 2024/10/23 09:34
upstream KCSAN: data-race in exec_mmap / unmap_region mm 11 1043d 1140d 0/28 auto-closed as invalid on 2022/03/24 07:45
upstream KCSAN: data-race in exec_mmap / unmap_region (4) mm 9 752d 840d 0/28 auto-obsoleted due to no activity on 2023/01/17 08:49
upstream KCSAN: data-race in exec_mmap / unmap_region (3) mm 6 883d 931d 0/28 auto-closed as invalid on 2022/08/31 04:19

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

write to 0xffff888102cceaf0 of 8 bytes by task 2811 on cpu 0:
 update_hiwater_rss include/linux/mm.h:2635 [inline]
 unmap_region+0x105/0x230 mm/mmap.c:2305
 do_vmi_align_munmap+0x650/0x9c0 mm/mmap.c:2627
 do_vmi_munmap+0x1ea/0x230 mm/mmap.c:2695
 __vm_munmap+0xe6/0x1d0 mm/mmap.c:2982
 __do_sys_munmap mm/mmap.c:2999 [inline]
 __se_sys_munmap mm/mmap.c:2996 [inline]
 __x64_sys_munmap+0x36/0x40 mm/mmap.c:2996
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff888102cceaf0 of 8 bytes by task 19120 on cpu 1:
 get_mm_hiwater_rss include/linux/mm.h:2622 [inline]
 setmax_mm_hiwater_rss include/linux/mm.h:2652 [inline]
 exec_mmap+0x2b7/0x430 fs/exec.c:1049
 begin_new_exec+0xab7/0xfa0 fs/exec.c:1310
 load_elf_binary+0x63d/0x1800 fs/binfmt_elf.c:996
 search_binary_handler fs/exec.c:1783 [inline]
 exec_binprm fs/exec.c:1825 [inline]
 bprm_execve+0x4e2/0xc50 fs/exec.c:1877
 do_execveat_common+0x760/0x7d0 fs/exec.c:1984
 do_execve fs/exec.c:2058 [inline]
 __do_sys_execve fs/exec.c:2134 [inline]
 __se_sys_execve fs/exec.c:2129 [inline]
 __x64_sys_execve+0x5a/0x70 fs/exec.c:2129
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000000000227 -> 0x0000000000000247

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 19120 Comm: dhcpcd Not tainted 6.8.0-rc3-syzkaller-00293-ga5b6244cf87c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/11 03:22 upstream a5b6244cf87c 77b23aa1 .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.