syzbot


KCSAN: data-race in do_madvise / try_to_unmap_one

Status: auto-obsoleted due to no activity on 2023/10/26 22:24
Subsystems: mm
[Documentation on labels]
First crash: 494d, last: 494d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_madvise / try_to_unmap_one

read to 0xffff888135224630 of 8 bytes by task 15403 on cpu 0:
 update_hiwater_rss include/linux/mm.h:2607 [inline]
 try_to_unmap_one+0x881/0x16f0 mm/rmap.c:1625
 rmap_walk_anon+0x2ff/0x4f0 mm/rmap.c:2429
 try_to_unmap+0xe9/0x110
 shrink_folio_list+0xd16/0x2540 mm/vmscan.c:1952
 reclaim_folio_list+0x7b/0x1d0 mm/vmscan.c:2801
 reclaim_pages+0x220/0x280 mm/vmscan.c:2837
 madvise_cold_or_pageout_pte_range+0x98c/0x9f0 mm/madvise.c:533
 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+0x80a/0xec0 mm/pagewalk.c:293
 __walk_page_range+0xc2/0x320 mm/pagewalk.c:395
 walk_page_range+0x2c7/0x3f0 mm/pagewalk.c:521
 madvise_pageout_page_range mm/madvise.c:592 [inline]
 madvise_pageout mm/madvise.c:619 [inline]
 madvise_vma_behavior mm/madvise.c:1041 [inline]
 madvise_walk_vmas mm/madvise.c:1270 [inline]
 do_madvise+0x1f20/0x2970 mm/madvise.c:1450
 __do_sys_madvise mm/madvise.c:1463 [inline]
 __se_sys_madvise mm/madvise.c:1461 [inline]
 __x64_sys_madvise+0x60/0x70 mm/madvise.c:1461
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff888135224630 of 8 bytes by task 15406 on cpu 1:
 update_hiwater_rss include/linux/mm.h:2608 [inline]
 madvise_free_single_vma mm/madvise.c:790 [inline]
 madvise_dontneed_free mm/madvise.c:908 [inline]
 madvise_vma_behavior mm/madvise.c:1045 [inline]
 madvise_walk_vmas mm/madvise.c:1270 [inline]
 do_madvise+0x179e/0x2970 mm/madvise.c:1450
 __do_sys_madvise mm/madvise.c:1463 [inline]
 __se_sys_madvise mm/madvise.c:1461 [inline]
 __x64_sys_madvise+0x60/0x70 mm/madvise.c:1461
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000000000000085f -> 0x000000000000091f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 15406 Comm: syz-executor.5 Not tainted 6.6.0-rc2-syzkaller-00143-gb5cbe7c00aa0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/21 22:18 upstream b5cbe7c00aa0 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_madvise / try_to_unmap_one
* Struck through repros no longer work on HEAD.