syzbot


KCSAN: data-race in direct_page_fault / kvm_mmu_notifier_change_pte

Status: auto-closed as invalid on 2020/09/23 09:55
Subsystems: kvm
[Documentation on labels]
First crash: 1345d, last: 1345d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in direct_page_fault / kvm_mmu_notifier_change_pte (3) kvm 1 1188d 1188d 0/26 auto-closed as invalid on 2021/02/27 13:37
upstream KCSAN: data-race in direct_page_fault / kvm_mmu_notifier_change_pte (2) kvm 1 1300d 1300d 0/26 auto-closed as invalid on 2020/11/07 23:13

Sample crash report:
==================================================================
BUG: KCSAN: data-race in direct_page_fault / kvm_mmu_notifier_change_pte

write to 0xffffc90001762188 of 8 bytes by task 13500 on cpu 1:
 kvm_mmu_notifier_change_pte+0x66/0x1a0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:462
 __mmu_notifier_change_pte+0x82/0x100 mm/mmu_notifier.c:438
 mmu_notifier_change_pte include/linux/mmu_notifier.h:442 [inline]
 wp_page_copy+0x8b3/0x1710 mm/memory.c:2724
 do_wp_page+0x9b2/0xd80 arch/x86/include/asm/atomic.h:95
 handle_pte_fault mm/memory.c:4242 [inline]
 __handle_mm_fault mm/memory.c:4359 [inline]
 handle_mm_fault+0x1899/0x1af0 mm/memory.c:4457
 do_user_addr_fault+0x380/0x770 arch/x86/mm/fault.c:1294
 handle_page_fault arch/x86/mm/fault.c:1351 [inline]
 exc_page_fault+0xb8/0x330 arch/x86/mm/fault.c:1404
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:538

read to 0xffffc90001762188 of 8 bytes by task 13505 on cpu 0:
 direct_page_fault+0x1c6/0x740 arch/x86/kvm/mmu/mmu.c:4104
 kvm_tdp_page_fault+0x92/0xa0 arch/x86/kvm/mmu/mmu.c:4187
 kvm_mmu_do_page_fault arch/x86/kvm/mmu.h:112 [inline]
 kvm_mmu_page_fault+0xca/0x410 arch/x86/kvm/mmu/mmu.c:5450
 handle_ept_violation+0x275/0x610 arch/x86/kvm/vmx/vmx.c:5337
 vmx_handle_exit+0x56b/0xc20 arch/x86/kvm/vmx/vmx.c:6118
 vcpu_enter_guest+0x1ada/0x2660 arch/x86/kvm/x86.c:8641
 vcpu_run+0x26e/0x740 arch/x86/kvm/x86.c:8706
 kvm_arch_vcpu_ioctl_run+0x38d/0x6a0 arch/x86/kvm/x86.c:8923
 kvm_vcpu_ioctl+0x565/0x950 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3229
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:739
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:739
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 13505 Comm: syz-executor.5 Not tainted 5.9.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/19 09:54 upstream 18445bf405cb e1c29030 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.