syzbot


KCSAN: data-race in exec_mmap / unmap_region

Status: auto-closed as invalid on 2022/03/24 07:45
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 386d, last: 288d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in exec_mmap / unmap_region (2) 3 228d 247d 0/24 auto-closed as invalid on 2022/05/23 08:59
upstream KCSAN: data-race in exec_mmap / unmap_region (3) 6 129d 177d 0/24 auto-closed as invalid on 2022/08/31 04:19

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

write to 0xffff88810465acb0 of 8 bytes by task 1475 on cpu 0:
 update_hiwater_rss include/linux/mm.h:2070 [inline]
 unmap_region+0x12b/0x1e0 mm/mmap.c:2655
 __do_munmap+0xeb5/0x1310 mm/mmap.c:2890
 __vm_munmap mm/mmap.c:2913 [inline]
 __do_sys_munmap+0x97/0x150 mm/mmap.c:2938
 __se_sys_munmap mm/mmap.c:2935 [inline]
 __x64_sys_munmap+0x2d/0x40 mm/mmap.c:2935
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88810465acb0 of 8 bytes by task 8466 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:1027
 begin_new_exec+0x863/0x1430 fs/exec.c:1288
 load_elf_binary+0x549/0x26f0 fs/binfmt_elf.c:1001
 search_binary_handler fs/exec.c:1727 [inline]
 exec_binprm+0x1d9/0x720 fs/exec.c:1768
 bprm_execve+0x3b5/0x520 fs/exec.c:1837
 do_execveat_common+0x63b/0x700 fs/exec.c:1926
 do_execve fs/exec.c:1994 [inline]
 __do_sys_execve fs/exec.c:2070 [inline]
 __se_sys_execve fs/exec.c:2065 [inline]
 __x64_sys_execve+0x56/0x70 fs/exec.c:2065
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000000002b9 -> 0x00000000000002ba

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8466 Comm: dhcpcd Not tainted 5.17.0-rc4-syzkaller-00054-gf71077a4d84b-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (11):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/02/17 07:42 upstream f71077a4d84b 2bea8a27 .config log report info KCSAN: data-race in exec_mmap / unmap_region
ci2-upstream-kcsan-gce 2022/02/09 21:55 upstream f4bc5bbb5fef 0b33604d .config log report info KCSAN: data-race in exec_mmap / unmap_region
ci2-upstream-kcsan-gce 2022/01/24 19:09 upstream dd81e1c7d5fb 214351e1 .config log report info KCSAN: data-race in exec_mmap / unmap_region
ci2-upstream-kcsan-gce 2022/01/20 21:41 upstream fa2e1ba3e9e3 b838eb76 .config log report info KCSAN: data-race in exec_mmap / unmap_region
ci2-upstream-kcsan-gce 2022/01/01 00:22 upstream 4f3d93c6eaff 36bd2e48 .config log report info KCSAN: data-race in exec_mmap / unmap_region
ci2-upstream-kcsan-gce 2021/12/29 11:52 upstream e7c124bd0463 76c8cf06 .config log report info KCSAN: data-race in exec_mmap / unmap_region
ci2-upstream-kcsan-gce 2021/12/23 18:42 upstream 996a18eb796a 6caa12e4 .config log report info KCSAN: data-race in exec_mmap / unmap_region
ci2-upstream-kcsan-gce 2021/12/07 17:20 upstream cd8c917a56f2 0230ba3e .config log report info KCSAN: data-race in exec_mmap / unmap_region
ci2-upstream-kcsan-gce 2021/11/15 10:56 upstream ce49bfc8d037 75b04091 .config log report info KCSAN: data-race in exec_mmap / unmap_region
ci2-upstream-kcsan-gce 2021/11/14 13:05 upstream c8c109546a19 75b04091 .config log report info KCSAN: data-race in exec_mmap / unmap_region
ci2-upstream-kcsan-gce 2021/11/11 15:37 upstream debe436e77c7 75b04091 .config log report info KCSAN: data-race in exec_mmap / unmap_region
* Struck through repros no longer work on HEAD.