syzbot


KCSAN: data-race in getrusage / vms_clear_ptes

Status: moderation: reported on 2024/09/23 03:32
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+31cd52ba68feee156393@syzkaller.appspotmail.com
First crash: 59d, last: 1d23h

Sample crash report:
==================================================================
BUG: KCSAN: data-race in getrusage / vms_clear_ptes

write to 0xffff88812fd4baa8 of 8 bytes by task 15086 on cpu 1:
 update_hiwater_rss include/linux/mm.h:2655 [inline]
 vms_clear_ptes+0x1a7/0x300 mm/vma.c:1094
 vms_clean_up_area+0x48/0x120 mm/vma.c:1114
 __mmap_region mm/mmap.c:1426 [inline]
 mmap_region+0x953/0x14a0 mm/mmap.c:1603
 do_mmap+0x718/0xb60 mm/mmap.c:496
 vm_mmap_pgoff+0x133/0x290 mm/util.c:588
 ksys_mmap_pgoff+0xd0/0x330 mm/mmap.c:542
 x64_sys_call+0x1884/0x2d60 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 0xffff88812fd4baa8 of 8 bytes by task 15087 on cpu 0:
 get_mm_hiwater_rss include/linux/mm.h:2642 [inline]
 setmax_mm_hiwater_rss include/linux/mm.h:2672 [inline]
 getrusage+0xa35/0xb90 kernel/sys.c:1870
 io_sq_thread+0x539/0x1010 io_uring/sqpoll.c:313
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

value changed: 0x0000000000000e8a -> 0x0000000000000fa1

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 15087 Comm: iou-sqp-15086 Tainted: G        W          6.12.0-syzkaller-00171-g23acd177540d #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
==================================================================

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/19 07:26 upstream 23acd177540d 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / vms_clear_ptes
2024/11/11 03:32 upstream a9cda7c0ffed 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / vms_clear_ptes
2024/11/11 03:30 upstream a9cda7c0ffed 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / vms_clear_ptes
2024/11/11 03:29 upstream a9cda7c0ffed 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / vms_clear_ptes
2024/11/09 14:39 upstream da4373fbcf00 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / vms_clear_ptes
2024/10/24 11:58 upstream c2ee9f594da8 0d144d1a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / vms_clear_ptes
2024/10/14 14:18 upstream 6485cf5ea253 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / vms_clear_ptes
2024/10/14 14:17 upstream 6485cf5ea253 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / vms_clear_ptes
2024/10/09 22:17 upstream 75b607fab38d 56fb2cb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / vms_clear_ptes
2024/09/28 04:18 upstream 3630400697a3 440b26ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / vms_clear_ptes
2024/09/23 03:31 upstream af9c191ac2a0 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / vms_clear_ptes
* Struck through repros no longer work on HEAD.