syzbot


KCSAN: data-race in mm_update_next_owner / vcpu_enter_guest

Status: closed as invalid on 2020/06/18 14:24
Subsystems: kvm
[Documentation on labels]
First crash: 1509d, last: 1427d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in mm_update_next_owner / vcpu_enter_guest (2) kvm 5 1367d 1388d 0/26 auto-closed as invalid on 2020/09/03 03:07

Sample crash report:
==================================================================
BUG: KCSAN: data-race in mm_update_next_owner / vcpu_enter_guest

write to 0xffff8880a5c6c024 of 4 bytes by task 27856 on cpu 1:
 guest_enter_irqoff include/linux/context_tracking.h:145 [inline]
 vcpu_enter_guest+0x7c5/0x3740 arch/x86/kvm/x86.c:8390
 vcpu_run arch/x86/kvm/x86.c:8544 [inline]
 kvm_arch_vcpu_ioctl_run+0x281/0xd60 arch/x86/kvm/x86.c:8766
 kvm_vcpu_ioctl+0x70b/0x9d0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3138
 vfs_ioctl fs/ioctl.c:47 [inline]
 ksys_ioctl+0x101/0x150 fs/ioctl.c:763
 __do_sys_ioctl fs/ioctl.c:772 [inline]
 __se_sys_ioctl fs/ioctl.c:770 [inline]
 __x64_sys_ioctl+0x47/0x60 fs/ioctl.c:770
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880a5c6c024 of 4 bytes by task 5612 on cpu 0:
 mm_update_next_owner+0x376/0x5a0 kernel/exit.c:383
 exit_mm kernel/exit.c:478 [inline]
 do_exit+0x63c/0x11e0 kernel/exit.c:782
 do_group_exit+0xae/0x1a0 kernel/exit.c:893
 get_signal+0x2a7/0x1290 kernel/signal.c:2739
 do_signal+0x2b/0x840 arch/x86/kernel/signal.c:784
 exit_to_usermode_loop+0x24a/0x2c0 arch/x86/entry/common.c:161
 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:279 [inline]
 do_syscall_64+0x38b/0x3b0 arch/x86/entry/common.c:305
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/30 04:58 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 954bd312 .config console log report ci2-upstream-kcsan-gce
2020/04/23 00:48 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 2e44d63e .config console log report ci2-upstream-kcsan-gce
2020/03/09 06:56 https://github.com/google/ktsan.git kcsan 941e0d917bbf 2e9971bb .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.