[moderation] [mm?] KCSAN: data-race in getrusage / try_to_unmap_one

0 views
Skip to first unread message

syzbot

unread,
Apr 4, 2024, 3:56:26 AMApr 4
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c85af715cac0 Merge tag 'vboxsf-v6.9-1' of git://git.kernel..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=11a886ad180000
kernel config: https://syzkaller.appspot.com/x/.config?x=d024e89f7bb376ce
dashboard link: https://syzkaller.appspot.com/bug?extid=e56458f60991622c35e8
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
CC: [ak...@linux-foundation.org linux-...@vger.kernel.org linu...@kvack.org]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/cb8a24fb67ab/disk-c85af715.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/58c43ae1e149/vmlinux-c85af715.xz
kernel image: https://storage.googleapis.com/syzbot-assets/70be5623c16c/bzImage-c85af715.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+e56458...@syzkaller.appspotmail.com

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

write to 0xffff888129174630 of 8 bytes by task 28295 on cpu 0:
update_hiwater_rss include/linux/mm.h:2655 [inline]
try_to_unmap_one+0x7f8/0x15a0 mm/rmap.c:1774
rmap_walk_anon+0x295/0x430 mm/rmap.c:2599
try_to_unmap+0xe9/0x110
shrink_folio_list+0xde0/0x2460 mm/vmscan.c:1260
reclaim_folio_list+0x81/0x1e0 mm/vmscan.c:2108
reclaim_pages+0x227/0x290 mm/vmscan.c:2145
madvise_cold_or_pageout_pte_range+0xaa0/0xb30 mm/madvise.c:527
walk_pmd_range mm/pagewalk.c:143 [inline]
walk_pud_range mm/pagewalk.c:221 [inline]
walk_p4d_range mm/pagewalk.c:256 [inline]
walk_pgd_range+0x80d/0xef0 mm/pagewalk.c:293
__walk_page_range+0xc5/0x330 mm/pagewalk.c:395
walk_page_range+0x2c5/0x400 mm/pagewalk.c:521
madvise_pageout_page_range mm/madvise.c:586 [inline]
madvise_pageout mm/madvise.c:613 [inline]
madvise_vma_behavior mm/madvise.c:1032 [inline]
madvise_walk_vmas mm/madvise.c:1261 [inline]
do_madvise+0x1a38/0x2620 mm/madvise.c:1441
__do_sys_madvise mm/madvise.c:1454 [inline]
__se_sys_madvise mm/madvise.c:1452 [inline]
__x64_sys_madvise+0x61/0x70 mm/madvise.c:1452
do_syscall_64+0xd3/0x1d0
entry_SYSCALL_64_after_hwframe+0x72/0x7a

read to 0xffff888129174630 of 8 bytes by task 28296 on cpu 1:
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: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:243

value changed: 0x0000000000000940 -> 0x0000000000001140

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 28296 Comm: iou-sqp-28295 Tainted: G W 6.9.0-rc2-syzkaller-00080-gc85af715cac0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages