syzbot


KCSAN: data-race in __anon_vma_prepare / handle_mm_fault (5)

Status: moderation: reported on 2025/04/14 22:30
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+0feecc6cd22af2f3b54d@syzkaller.appspotmail.com
First crash: 11d, last: 11d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __anon_vma_prepare / handle_mm_fault (3) mm 5 257d 306d 0/28 auto-obsoleted due to no activity on 2024/09/15 23:12
upstream KCSAN: data-race in __anon_vma_prepare / handle_mm_fault (4) mm 3 134d 157d 0/28 auto-obsoleted due to no activity on 2025/02/07 03:27
upstream KCSAN: data-race in __anon_vma_prepare / handle_mm_fault (2) mm 123 364d 504d 0/28 auto-obsoleted due to no activity on 2024/05/31 23:05
upstream KCSAN: data-race in __anon_vma_prepare / handle_mm_fault mm 7 1351d 1431d 0/28 auto-closed as invalid on 2021/09/18 03:16

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __anon_vma_prepare / handle_mm_fault

write to 0xffff88810a43e280 of 8 bytes by task 10576 on cpu 1:
 __anon_vma_prepare+0x180/0x310 mm/rmap.c:213
 __vmf_anon_prepare mm/memory.c:3432 [inline]
 vmf_anon_prepare mm/internal.h:415 [inline]
 do_anonymous_page mm/memory.c:4996 [inline]
 do_pte_missing mm/memory.c:4158 [inline]
 handle_pte_fault mm/memory.c:5997 [inline]
 __handle_mm_fault mm/memory.c:6140 [inline]
 handle_mm_fault+0x1e95/0x2e80 mm/memory.c:6309
 do_user_addr_fault arch/x86/mm/fault.c:1337 [inline]
 handle_page_fault arch/x86/mm/fault.c:1480 [inline]
 exc_page_fault+0x3b9/0x6a0 arch/x86/mm/fault.c:1538
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623

read to 0xffff88810a43e280 of 8 bytes by task 10577 on cpu 0:
 __vmf_anon_prepare mm/memory.c:3426 [inline]
 vmf_anon_prepare mm/internal.h:415 [inline]
 do_anonymous_page mm/memory.c:4996 [inline]
 do_pte_missing mm/memory.c:4158 [inline]
 handle_pte_fault mm/memory.c:5997 [inline]
 __handle_mm_fault mm/memory.c:6140 [inline]
 handle_mm_fault+0xda6/0x2e80 mm/memory.c:6309
 do_user_addr_fault arch/x86/mm/fault.c:1388 [inline]
 handle_page_fault arch/x86/mm/fault.c:1480 [inline]
 exc_page_fault+0x296/0x6a0 arch/x86/mm/fault.c:1538
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
 __put_user_4+0xd/0x20 arch/x86/lib/putuser.S:92
 __sys_socketpair+0xc5/0x440 net/socket.c:1733
 __do_sys_socketpair net/socket.c:1799 [inline]
 __se_sys_socketpair net/socket.c:1796 [inline]
 __x64_sys_socketpair+0x52/0x60 net/socket.c:1796
 x64_sys_call+0x2230/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:54
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000000000 -> 0xffff888119915d00

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 10577 Comm: syz.3.2302 Not tainted 6.15.0-rc2-syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/14 22:30 upstream 8ffd015db85f 0bd6db41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __anon_vma_prepare / handle_mm_fault
* Struck through repros no longer work on HEAD.