syzbot


KCSAN: data-race in direct_page_fault / kvm_mmu_notifier_change_pte (3)

Status: auto-closed as invalid on 2021/02/27 13:37
Subsystems: kvm
[Documentation on labels]
First crash: 1189d, last: 1189d
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 (2) kvm 1 1301d 1301d 0/26 auto-closed as invalid on 2020/11/07 23:13
upstream KCSAN: data-race in direct_page_fault / kvm_mmu_notifier_change_pte kvm 1 1346d 1346d 0/26 auto-closed as invalid on 2020/09/23 09:55

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

read-write to 0xffffc9000175e1b0 of 8 bytes by task 13577 on cpu 0:
 kvm_mmu_notifier_change_pte+0x59/0x180 arch/x86/kvm/../../../virt/kvm/kvm_main.c:463
 __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+0x826/0x1490 mm/memory.c:2911
 do_wp_page+0x482/0x6c0 arch/x86/include/asm/atomic.h:95
 handle_pte_fault mm/memory.c:4405 [inline]
 __handle_mm_fault mm/memory.c:4522 [inline]
 handle_mm_fault+0x1407/0x17b0 mm/memory.c:4620
 do_user_addr_fault+0x433/0x830 arch/x86/mm/fault.c:1393
 handle_page_fault arch/x86/mm/fault.c:1450 [inline]
 exc_page_fault+0x94/0x2a0 arch/x86/mm/fault.c:1506
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:580

read to 0xffffc9000175e1b0 of 8 bytes by task 13582 on cpu 1:
 direct_page_fault+0x1c5/0x770 arch/x86/kvm/mmu/mmu.c:3717
 kvm_tdp_page_fault+0x92/0xa0 arch/x86/kvm/mmu/mmu.c:3805
 kvm_mmu_do_page_fault arch/x86/kvm/mmu.h:112 [inline]
 kvm_mmu_page_fault+0xca/0x3c0 arch/x86/kvm/mmu/mmu.c:5074
 handle_ept_violation+0x277/0x350 arch/x86/kvm/vmx/vmx.c:5337
 vmx_handle_exit+0x2fd/0x7e0 arch/x86/kvm/vmx/vmx.c:6048
 vcpu_enter_guest+0x1a26/0x2530 arch/x86/kvm/x86.c:9081
 vcpu_run+0x24e/0x680 arch/x86/kvm/x86.c:9147
 kvm_arch_vcpu_ioctl_run+0x443/0x820 arch/x86/kvm/x86.c:9374
 kvm_vcpu_ioctl+0x562/0x8f0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3282
 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: 1 PID: 13582 Comm: syz-executor.4 Not tainted 5.11.0-rc4-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
2021/01/23 13:37 upstream fe75a21824e7 52e37319 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in direct_page_fault / kvm_mmu_notifier_change_pte
* Struck through repros no longer work on HEAD.