syzbot


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

Status: auto-obsoleted due to no activity on 2023/01/17 08:49
Subsystems: mm
[Documentation on labels]
First crash: 653d, last: 565d
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 796d 814d 0/27 auto-closed as invalid on 2022/05/23 08:59
upstream KCSAN: data-race in exec_mmap / unmap_region (5) mm 2 274d 288d 0/27 auto-obsoleted due to no activity on 2023/10/26 20:01
upstream KCSAN: data-race in exec_mmap / unmap_region (6) mm 1 132d 132d 0/27 auto-obsoleted due to no activity on 2024/03/17 03:23
upstream KCSAN: data-race in exec_mmap / unmap_region mm 11 856d 953d 0/27 auto-closed as invalid on 2022/03/24 07:45
upstream KCSAN: data-race in exec_mmap / unmap_region (3) mm 6 696d 744d 0/27 auto-closed as invalid on 2022/08/31 04:19

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

write to 0xffff888103bcc4a8 of 8 bytes by task 1466 on cpu 1:
 update_hiwater_rss include/linux/mm.h:2127 [inline]
 unmap_region+0x10c/0x1d0 mm/mmap.c:2184
 do_mas_align_munmap+0x4fc/0x9b0 mm/mmap.c:2441
 do_mas_munmap+0x1df/0x210 mm/mmap.c:2499
 __vm_munmap+0xe4/0x1b0 mm/mmap.c:2776
 __do_sys_munmap mm/mmap.c:2801 [inline]
 __se_sys_munmap mm/mmap.c:2798 [inline]
 __x64_sys_munmap+0x32/0x40 mm/mmap.c:2798
 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+0x63/0xcd

read to 0xffff888103bcc4a8 of 8 bytes by task 2691 on cpu 0:
 get_mm_hiwater_rss include/linux/mm.h:2114 [inline]
 setmax_mm_hiwater_rss include/linux/mm.h:2144 [inline]
 exec_mmap+0x19c/0x310 fs/exec.c:1033
 begin_new_exec+0x7a4/0xfc0 fs/exec.c:1294
 load_elf_binary+0x637/0x1980 fs/binfmt_elf.c:1002
 search_binary_handler fs/exec.c:1727 [inline]
 exec_binprm+0x1d9/0x800 fs/exec.c:1768
 bprm_execve+0x379/0x4e0 fs/exec.c:1837
 do_execveat_common+0x843/0x950 fs/exec.c:1942
 do_execve fs/exec.c:2016 [inline]
 __do_sys_execve fs/exec.c:2092 [inline]
 __se_sys_execve fs/exec.c:2087 [inline]
 __x64_sys_execve+0x56/0x70 fs/exec.c:2087
 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+0x63/0xcd

value changed: 0x00000000000002b1 -> 0x00000000000002b2

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2691 Comm: dhcpcd Not tainted 6.1.0-rc7-syzkaller-00211-g0ba09b173387-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/05 09:18 upstream 0ba09b173387 e080de16 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / unmap_region
2022/11/01 10:17 upstream 5aaef24b5c6d a1d8560a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / unmap_region
2022/10/08 21:52 upstream 62e6e5940c0c aea5da89 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / unmap_region
2022/10/06 18:36 upstream 833477fce7a1 80b58a42 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / unmap_region
2022/10/04 19:59 upstream 725737e7c21d eab8f949 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / unmap_region
2022/10/01 06:25 upstream 70575e77839f feb56351 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / unmap_region
2022/09/21 08:26 upstream 60891ec99e14 c4b8ccfd .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / unmap_region
2022/09/09 02:18 upstream 26b1224903b3 f3027468 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in exec_mmap / unmap_region
2022/09/08 03:06 upstream 0066f1b0e275 435aeef7 .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.