syzbot


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

Status: moderation: reported on 2024/11/19 15:19
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+94703445c693653e6d44@syzkaller.appspotmail.com
First crash: 65d, last: 42d
Similar bugs (3)
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 165d 213d 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 (2) mm 123 272d 412d 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 1259d 1339d 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 0xffff888109c7ece8 of 8 bytes by task 22538 on cpu 0:
 __anon_vma_prepare+0x180/0x310 mm/rmap.c:213
 __vmf_anon_prepare mm/memory.c:3321 [inline]
 vmf_anon_prepare mm/internal.h:372 [inline]
 do_anonymous_page mm/memory.c:4805 [inline]
 do_pte_missing mm/memory.c:3977 [inline]
 handle_pte_fault mm/memory.c:5801 [inline]
 __handle_mm_fault mm/memory.c:5944 [inline]
 handle_mm_fault+0x1c76/0x2ac0 mm/memory.c:6112
 do_user_addr_fault arch/x86/mm/fault.c:1389 [inline]
 handle_page_fault arch/x86/mm/fault.c:1481 [inline]
 exc_page_fault+0x296/0x650 arch/x86/mm/fault.c:1539
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
 __put_user_4+0x11/0x20 arch/x86/lib/putuser.S:86
 __sys_socketpair+0xba/0x430 net/socket.c:1750
 __do_sys_socketpair net/socket.c:1816 [inline]
 __se_sys_socketpair net/socket.c:1813 [inline]
 __x64_sys_socketpair+0x52/0x60 net/socket.c:1813
 x64_sys_call+0x1cad/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:54
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888109c7ece8 of 8 bytes by task 22537 on cpu 1:
 __vmf_anon_prepare mm/memory.c:3315 [inline]
 vmf_anon_prepare mm/internal.h:372 [inline]
 do_anonymous_page mm/memory.c:4805 [inline]
 do_pte_missing mm/memory.c:3977 [inline]
 handle_pte_fault mm/memory.c:5801 [inline]
 __handle_mm_fault mm/memory.c:5944 [inline]
 handle_mm_fault+0xda3/0x2ac0 mm/memory.c:6112
 do_user_addr_fault arch/x86/mm/fault.c:1389 [inline]
 handle_page_fault arch/x86/mm/fault.c:1481 [inline]
 exc_page_fault+0x296/0x650 arch/x86/mm/fault.c:1539
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
 __put_user_4+0x11/0x20 arch/x86/lib/putuser.S:86
 __sys_socketpair+0xba/0x430 net/socket.c:1750
 __do_sys_socketpair net/socket.c:1816 [inline]
 __se_sys_socketpair net/socket.c:1813 [inline]
 __x64_sys_socketpair+0x52/0x60 net/socket.c:1813
 x64_sys_call+0x1cad/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:54
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000000000 -> 0xffff88810358e4e0

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 22537 Comm: syz.8.6789 Not tainted 6.13.0-rc2-syzkaller-00130-g150b567e0d57 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/13 03:27 upstream 150b567e0d57 530e80f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __anon_vma_prepare / handle_mm_fault
2024/11/21 09:40 upstream 8f7c8b88bda4 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __anon_vma_prepare / handle_mm_fault
2024/11/19 15:19 upstream 23acd177540d 571351cb .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.