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

write to 0xffff888112477a00 of 8 bytes by task 22687 on cpu 0:
 update_hiwater_rss include/linux/mm.h:2754 [inline]
 vms_clear_ptes+0x1a4/0x300 mm/vma.c:1150
 vms_clean_up_area mm/vma.c:1170 [inline]
 __mmap_prepare mm/vma.c:2297 [inline]
 __mmap_region mm/vma.c:2463 [inline]
 mmap_region+0x664/0x1490 mm/vma.c:2554
 do_mmap+0x9ef/0xc80 mm/mmap.c:561
 vm_mmap_pgoff+0x16d/0x2d0 mm/util.c:579
 ksys_mmap_pgoff+0x2e2/0x340 mm/mmap.c:607
 x64_sys_call+0x1945/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:10
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888112477a00 of 8 bytes by task 22690 on cpu 1:
 get_mm_hiwater_rss include/linux/mm.h:2741 [inline]
 setmax_mm_hiwater_rss include/linux/mm.h:2771 [inline]
 getrusage+0xa17/0xb70 kernel/sys.c:1876
 io_sq_thread+0x5e0/0x1140 io_uring/sqpoll.c:310
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x00000000000014e6 -> 0x00000000000016b1

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 22690 Comm: iou-sqp-22687 Not tainted 6.15.0-rc2-syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
==================================================================