syzbot


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

Status: auto-closed as invalid on 2022/05/23 08:59
Subsystems: mm
[Documentation on labels]
First crash: 729d, last: 710d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in exec_mmap / unmap_region (5) mm 2 189d 203d 0/26 auto-obsoleted due to no activity on 2023/10/26 20:01
upstream KCSAN: data-race in exec_mmap / unmap_region (6) mm 1 47d 47d 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 770d 868d 0/26 auto-closed as invalid on 2022/03/24 07:45
upstream KCSAN: data-race in exec_mmap / unmap_region (4) mm 9 479d 568d 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 611d 659d 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 0xffff8881049ce0b0 of 8 bytes by task 1479 on cpu 0:
 update_hiwater_rss include/linux/mm.h:2070 [inline]
 unmap_region+0x12b/0x1e0 mm/mmap.c:2653
 __do_munmap+0xd85/0x11b0 mm/mmap.c:2868
 __vm_munmap mm/mmap.c:2891 [inline]
 __do_sys_munmap+0x97/0x150 mm/mmap.c:2916
 __se_sys_munmap mm/mmap.c:2913 [inline]
 __x64_sys_munmap+0x2d/0x40 mm/mmap.c:2913
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881049ce0b0 of 8 bytes by task 25135 on cpu 1:
 get_mm_hiwater_rss include/linux/mm.h:2057 [inline]
 setmax_mm_hiwater_rss include/linux/mm.h:2087 [inline]
 exec_mmap+0x1e3/0x360 fs/exec.c:1032
 begin_new_exec+0x7a2/0x1060 fs/exec.c:1293
 load_elf_binary+0x62a/0x1970 fs/binfmt_elf.c:1002
 search_binary_handler fs/exec.c:1726 [inline]
 exec_binprm+0x1d9/0x800 fs/exec.c:1767
 bprm_execve+0x379/0x4e0 fs/exec.c:1836
 do_execveat_common+0x853/0x960 fs/exec.c:1941
 do_execve fs/exec.c:2011 [inline]
 __do_sys_execve fs/exec.c:2087 [inline]
 __se_sys_execve fs/exec.c:2082 [inline]
 __x64_sys_execve+0x56/0x70 fs/exec.c:2082
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000000002a1 -> 0x00000000000002a4

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 25135 Comm: dhcpcd Tainted: G        W         5.18.0-rc3-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/18 08:50 upstream b2d229d4ddb1 8bcc32a6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / unmap_region
2022/04/13 17:24 upstream a19944809fe9 b17b2923 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / unmap_region
2022/03/31 04:14 upstream 74164d284b29 9d49f3a7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / unmap_region
* Struck through repros no longer work on HEAD.