==================================================================
BUG: KCSAN: data-race in getrusage / vms_clear_ptes

write to 0xffff88810005de78 of 8 bytes by task 5645 on cpu 0:
 update_hiwater_rss include/linux/mm.h:2669 [inline]
 vms_clear_ptes+0x1a2/0x300 mm/vma.c:1136
 vms_clean_up_area mm/vma.c:1156 [inline]
 __mmap_prepare mm/vma.c:2283 [inline]
 __mmap_region mm/vma.c:2448 [inline]
 mmap_region+0x659/0x1620 mm/vma.c:2539
 do_mmap+0x98a/0xc30 mm/mmap.c:561
 vm_mmap_pgoff+0x16d/0x2d0 mm/util.c:575
 ksys_mmap_pgoff+0x286/0x330 mm/mmap.c:607
 x64_sys_call+0x1940/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:10
 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 0xffff88810005de78 of 8 bytes by task 5640 on cpu 1:
 get_mm_hiwater_rss include/linux/mm.h:2656 [inline]
 setmax_mm_hiwater_rss include/linux/mm.h:2686 [inline]
 getrusage+0xa15/0xb70 kernel/sys.c:1872
 io_sq_thread+0x5f9/0x1100 io_uring/sqpoll.c:310
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

value changed: 0x00000000000014e5 -> 0x00000000000016b0

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 5640 Comm: iou-sqp-5639 Not tainted 6.14.0-rc6-syzkaller-00202-ga29967be967e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
==================================================================