syzbot


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

Status: auto-closed as invalid on 2020/11/07 23:13
Subsystems: kvm
[Documentation on labels]
First crash: 1309d, last: 1309d
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 1197d 1197d 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 kvm 1 1354d 1354d 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

write to 0xffffc90006baa188 of 8 bytes by task 1443 on cpu 0:
 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:2925
 do_wp_page+0x4c6/0x740 arch/x86/include/asm/atomic.h:95
 handle_pte_fault mm/memory.c:4418 [inline]
 __handle_mm_fault mm/memory.c:4535 [inline]
 handle_mm_fault+0x1899/0x1af0 mm/memory.c:4633
 do_user_addr_fault+0x380/0x770 arch/x86/mm/fault.c:1372
 handle_page_fault arch/x86/mm/fault.c:1429 [inline]
 exc_page_fault+0xb8/0x330 arch/x86/mm/fault.c:1482
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:538

read to 0xffffc90006baa188 of 8 bytes by task 1451 on cpu 1:
 direct_page_fault+0x1c6/0x740 arch/x86/kvm/mmu/mmu.c:4105
 kvm_tdp_page_fault+0x92/0xa0 arch/x86/kvm/mmu/mmu.c:4188
 kvm_mmu_do_page_fault arch/x86/kvm/mmu.h:112 [inline]
 kvm_mmu_page_fault+0xca/0x410 arch/x86/kvm/mmu/mmu.c:5451
 handle_ept_violation+0x2bf/0x660 arch/x86/kvm/vmx/vmx.c:5343
 vmx_handle_exit+0x558/0xc30 arch/x86/kvm/vmx/vmx.c:6125
 vcpu_enter_guest+0x1ada/0x2660 arch/x86/kvm/x86.c:8655
 vcpu_run+0x26e/0x740 arch/x86/kvm/x86.c:8720
 kvm_arch_vcpu_ioctl_run+0x38d/0x6a0 arch/x86/kvm/x86.c:8937
 kvm_vcpu_ioctl+0x565/0x950 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3230
 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: 1451 Comm: syz-executor.2 Not tainted 5.9.0-rc7-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/10/03 23:05 upstream 22fbc037cd32 1a3f9408 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.