syzbot


KCSAN: data-race in getrusage / try_to_migrate_one (2)

Status: moderation: reported on 2025/05/21 05:50
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+3dc0e895530ac92d5ee8@syzkaller.appspotmail.com
First crash: 3d21h, last: 3d21h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in getrusage / try_to_migrate_one mm 8 88d 101d 0/28 auto-obsoleted due to no activity on 2025/04/22 03:28

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

write to 0xffff88810a43c300 of 8 bytes by task 19424 on cpu 1:
 update_hiwater_rss include/linux/mm.h:2771 [inline]
 try_to_migrate_one+0x8dc/0x15f0 mm/rmap.c:2447
 rmap_walk_anon+0x27d/0x430 mm/rmap.c:2834
 rmap_walk mm/rmap.c:2939 [inline]
 try_to_migrate+0x12a/0x210 mm/rmap.c:2613
 migrate_folio_unmap mm/migrate.c:1320 [inline]
 migrate_pages_batch+0x751/0x17d0 mm/migrate.c:1866
 migrate_pages_sync mm/migrate.c:1989 [inline]
 migrate_pages+0xf99/0x17f0 mm/migrate.c:2098
 do_mbind mm/mempolicy.c:1425 [inline]
 kernel_mbind mm/mempolicy.c:1568 [inline]
 __do_sys_mbind mm/mempolicy.c:1642 [inline]
 __se_sys_mbind+0x975/0xac0 mm/mempolicy.c:1638
 __x64_sys_mbind+0x78/0x90 mm/mempolicy.c:1638
 x64_sys_call+0x14af/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:238
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88810a43c300 of 8 bytes by task 19426 on cpu 0:
 get_mm_hiwater_rss include/linux/mm.h:2758 [inline]
 setmax_mm_hiwater_rss include/linux/mm.h:2788 [inline]
 getrusage+0xa52/0xbb0 kernel/sys.c:1876
 io_sq_thread+0x5dd/0x1110 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: 0x00000000000014ea -> 0x000000000000171e

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 19426 Comm: iou-sqp-19424 Not tainted 6.15.0-rc7-syzkaller-00002-gb36ddb9210e6 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/21 05:49 upstream b36ddb9210e6 b47f9e02 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in getrusage / try_to_migrate_one
* Struck through repros no longer work on HEAD.