syzbot


KCSAN: data-race in getrusage / unmap_region

Status: moderation: reported on 2024/04/09 08:35
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+bb9e84b42e2a67e8fb04@syzkaller.appspotmail.com
First crash: 42d, last: 7d18h

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

write to 0xffff8881193d95f0 of 8 bytes by task 25195 on cpu 0:
 update_hiwater_rss include/linux/mm.h:2657 [inline]
 unmap_region+0x105/0x230 mm/mmap.c:2309
 do_vmi_align_munmap+0x650/0x9c0 mm/mmap.c:2628
 do_vmi_munmap+0x1eb/0x230 mm/mmap.c:2696
 mmap_region+0x523/0x1550 mm/mmap.c:2747
 do_mmap+0x6a6/0xac0 mm/mmap.c:1385
 vm_mmap_pgoff+0x12f/0x250 mm/util.c:573
 ksys_mmap_pgoff+0x2f8/0x340 mm/mmap.c:1431
 x64_sys_call+0x1815/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:10
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881193d95f0 of 8 bytes by task 25196 on cpu 1:
 get_mm_hiwater_rss include/linux/mm.h:2644 [inline]
 setmax_mm_hiwater_rss include/linux/mm.h:2674 [inline]
 getrusage+0xa35/0xb90 kernel/sys.c:1861
 io_sq_thread+0x4d3/0xef0 io_uring/sqpoll.c:305
 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: 0x0000000000000861 -> 0x0000000000000901

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 25196 Comm: iou-sqp-25195 Tainted: G        W          6.9.0-syzkaller-01049-g8815da98e06a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
==================================================================

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/14 02:51 upstream 8815da98e06a fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / unmap_region
2024/05/01 10:20 upstream 18daea77cca6 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / unmap_region
2024/04/28 18:42 upstream 2c8159388952 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / unmap_region
2024/04/26 15:01 upstream c942a0cd3603 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / unmap_region
2024/04/25 04:41 upstream e88c4cfcb7b8 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / unmap_region
2024/04/24 04:54 upstream 9d1ddab261f3 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / unmap_region
2024/04/21 14:29 upstream 977b1ef51866 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / unmap_region
2024/04/09 08:35 upstream 20cb38a7af88 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / unmap_region
* Struck through repros no longer work on HEAD.