syzbot


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

Status: auto-obsoleted due to no activity on 2024/10/23 09:34
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+dade76e1603e29e85918@syzkaller.appspotmail.com
First crash: 52d, last: 52d
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 936d 954d 0/28 auto-closed as invalid on 2022/05/23 08:59
upstream KCSAN: data-race in exec_mmap / unmap_region (5) mm 2 415d 429d 0/28 auto-obsoleted due to no activity on 2023/10/26 20:01
upstream KCSAN: data-race in exec_mmap / unmap_region (6) mm 1 272d 272d 0/28 auto-obsoleted due to no activity on 2024/03/17 03:23
upstream KCSAN: data-race in exec_mmap / unmap_region mm 11 996d 1094d 0/28 auto-closed as invalid on 2022/03/24 07:45
upstream KCSAN: data-race in exec_mmap / unmap_region (4) mm 9 705d 793d 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 836d 885d 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 0xffff888107b995e8 of 8 bytes by task 3251 on cpu 0:
 update_hiwater_rss include/linux/mm.h:2670 [inline]
 unmap_region+0x105/0x230 mm/mmap.c:2435
 do_vmi_align_munmap+0x6df/0xa60 mm/mmap.c:2754
 do_vmi_munmap+0x1fb/0x250 mm/mmap.c:2830
 __vm_munmap+0xec/0x210 mm/mmap.c:3109
 __do_sys_munmap mm/mmap.c:3126 [inline]
 __se_sys_munmap mm/mmap.c:3123 [inline]
 __x64_sys_munmap+0x36/0x40 mm/mmap.c:3123
 x64_sys_call+0xd32/0x2d60 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 0xffff888107b995e8 of 8 bytes by task 13618 on cpu 1:
 get_mm_hiwater_rss include/linux/mm.h:2657 [inline]
 setmax_mm_hiwater_rss include/linux/mm.h:2687 [inline]
 exec_mmap+0x2d0/0x440 fs/exec.c:1080
 begin_new_exec+0xaf9/0x10b0 fs/exec.c:1348
 load_elf_binary+0x63b/0x1970 fs/binfmt_elf.c:996
 search_binary_handler fs/exec.c:1820 [inline]
 exec_binprm fs/exec.c:1862 [inline]
 bprm_execve+0x4e6/0xc30 fs/exec.c:1913
 do_execveat_common+0x793/0x800 fs/exec.c:2020
 do_execve fs/exec.c:2094 [inline]
 __do_sys_execve fs/exec.c:2170 [inline]
 __se_sys_execve fs/exec.c:2165 [inline]
 __x64_sys_execve+0x5a/0x70 fs/exec.c:2165
 x64_sys_call+0x1277/0x2d60 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: 0x00000000000020e5 -> 0x000000000000325a

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 13618 Comm: syz-executor Tainted: G        W          6.11.0-syzkaller-04744-gbdf56c7580d2 #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/18 09:34 upstream bdf56c7580d2 c673ca06 .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.