[Bug 195309] New: qemu-system-x86_64: using __this_cpu_read() in preemptible

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=195309

            Bug ID: 195309
           Summary: qemu-system-x86_64: using __this_cpu_read() in
                    preemptible
           Product: Virtualization
           Version: unspecified
    Kernel Version: 4.9.18-rt-rt14
          Hardware: x86-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: low
          Priority: P1
         Component: kvm
          Assignee: virtualization_kvm@xxxxxxxxxxxxxxxxxxxx
          Reporter: thiemel@xxxxxxxxxx
        Regression: No

OS: Gentoo x86_64

Preemptive kernel with RealTime patch:
CONFIG_PREEMPT_RCU=y
CONFIG_PREEMPT_NOTIFIERS=y
CONFIG_PREEMPT=y
CONFIG_PREEMPT_RT_BASE=y
CONFIG_HAVE_PREEMPT_LAZY=y
CONFIG_PREEMPT_LAZY=y
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT__LL is not set
# CONFIG_PREEMPT_RTB is not set
CONFIG_PREEMPT_RT_FULL=y
CONFIG_PREEMPT_COUNT=y
CONFIG_DEBUG_PREEMPT=y

DMESG OUTPUTs:
[64005.914848] BUG: using __this_cpu_read() in preemptible [00000000 00000000]
code: qemu-system-x86/6915
[64005.914853] caller is __this_cpu_preempt_check+0x13/0x20
[64005.914856] CPU: 5 PID: 6915 Comm: qemu-system-x86 Not tainted
4.9.18-rt-rt14-xeon #4
[64005.914857] Hardware name: MSI MS-7759/Z77MA-G45 (MS-7759), BIOS V1.9
03/01/2013
[64005.914861]  ffffc9001de3fb00 ffffffff813deaf4 0000000000000005
ffffffff819e4bd5
[64005.914864]  ffffc9001de3fb30 ffffffff814028a6 ffffc90000001b03
ffff8807ee93c000
[64005.914866]  ffff8807ee93f438 ffffc9001de3fc50 ffffc9001de3fb40
ffffffff814028e3
[64005.914867] Call Trace:
[64005.914873]  [<ffffffff813deaf4>] dump_stack+0x4f/0x6b
[64005.914876]  [<ffffffff814028a6>] check_preemption_disabled+0x116/0x120
[64005.914878]  [<ffffffff814028e3>] __this_cpu_preempt_check+0x13/0x20
[64005.914896]  [<ffffffffa038350a>] __get_kvmclock_ns+0x6a/0x100 [kvm]
[64005.914909]  [<ffffffffa03879cd>] get_kvmclock_ns+0xd/0x20 [kvm]
[64005.914923]  [<ffffffffa03b02ca>] get_time_ref_counter+0x4a/0x70 [kvm]
[64005.914935]  [<ffffffffa03b16b1>] kvm_hv_get_msr_common+0x351/0x4b0 [kvm]
[64005.914948]  [<ffffffffa0383cff>] kvm_get_msr_common+0x44f/0x650 [kvm]
[64005.914954]  [<ffffffffa07302f6>] vmx_get_msr+0xa6/0x480 [kvm_intel]
[64005.914958]  [<ffffffffa07316a2>] handle_rdmsr+0x32/0x90 [kvm_intel]
[64005.914962]  [<ffffffffa0734503>] vmx_handle_exit+0xe3/0x12d0 [kvm_intel]
[64005.914976]  [<ffffffffa038f09e>] kvm_arch_vcpu_ioctl_run+0xc8e/0x18b0 [kvm]
[64005.914987]  [<ffffffffa038f03b>] ? kvm_arch_vcpu_ioctl_run+0xc2b/0x18b0
[kvm]
[64005.914995]  [<ffffffffa0387ce2>] ? kvm_arch_vcpu_load+0x52/0x220 [kvm]
[64005.915002]  [<ffffffffa0379fb7>] kvm_vcpu_ioctl+0x337/0x590 [kvm]
[64005.915005]  [<ffffffff811b184a>] do_vfs_ioctl+0x9a/0x5f0
[64005.915007]  [<ffffffff811bd5f4>] ? __fget+0xc4/0x100
[64005.915009]  [<ffffffff811bd530>] ? expand_files+0x210/0x210
[64005.915010]  [<ffffffff811b1ddc>] SyS_ioctl+0x3c/0x70
[64005.915012]  [<ffffffff810026a5>] do_syscall_64+0x75/0x190
[64005.915015]  [<ffffffff8175070f>] entry_SYSCALL64_slow_path+0x25/0x25



[291105.373894] BUG: using __this_cpu_read() in preemptible [00000000 00000000]
code: qemu-system-x86/6915
[291105.373899] caller is __this_cpu_preempt_check+0x13/0x20
[291105.373902] CPU: 2 PID: 6915 Comm: qemu-system-x86 Not tainted
4.9.18-rt-rt14-xeon #4
[291105.373902] Hardware name: MSI MS-7759/Z77MA-G45 (MS-7759), BIOS V1.9
03/01/2013
[291105.373907]  ffffc9001de3fb00 ffffffff813deaf4 0000000000000002
ffffffff819e4bd5
[291105.373910]  ffffc9001de3fb30 ffffffff814028a6 ffffc90000001b03
ffff8807ee93c000
[291105.373912]  ffff8807ee93f438 ffffc9001de3fc50 ffffc9001de3fb40
ffffffff814028e3
[291105.373913] Call Trace:
[291105.373918]  [<ffffffff813deaf4>] dump_stack+0x4f/0x6b
[291105.373920]  [<ffffffff814028a6>] check_preemption_disabled+0x116/0x120
[291105.373922]  [<ffffffff814028e3>] __this_cpu_preempt_check+0x13/0x20
[291105.373935]  [<ffffffffa038350a>] __get_kvmclock_ns+0x6a/0x100 [kvm]
[291105.373944]  [<ffffffffa03879cd>] get_kvmclock_ns+0xd/0x20 [kvm]
[291105.373953]  [<ffffffffa03b02ca>] get_time_ref_counter+0x4a/0x70 [kvm]
[291105.373961]  [<ffffffffa03b16b1>] kvm_hv_get_msr_common+0x351/0x4b0 [kvm]
[291105.373971]  [<ffffffffa0383cff>] kvm_get_msr_common+0x44f/0x650 [kvm]
[291105.373977]  [<ffffffffa07302f6>] vmx_get_msr+0xa6/0x480 [kvm_intel]
[291105.373981]  [<ffffffffa07316a2>] handle_rdmsr+0x32/0x90 [kvm_intel]
[291105.373986]  [<ffffffffa0734503>] vmx_handle_exit+0xe3/0x12d0 [kvm_intel]
[291105.373995]  [<ffffffffa038f09e>] kvm_arch_vcpu_ioctl_run+0xc8e/0x18b0
[kvm]
[291105.374003]  [<ffffffffa038f03b>] ? kvm_arch_vcpu_ioctl_run+0xc2b/0x18b0
[kvm]
[291105.374011]  [<ffffffffa0387ce2>] ? kvm_arch_vcpu_load+0x52/0x220 [kvm]
[291105.374018]  [<ffffffffa0379fb7>] kvm_vcpu_ioctl+0x337/0x590 [kvm]
[291105.374021]  [<ffffffff811b184a>] do_vfs_ioctl+0x9a/0x5f0
[291105.374023]  [<ffffffff811bd5f4>] ? __fget+0xc4/0x100
[291105.374025]  [<ffffffff811bd530>] ? expand_files+0x210/0x210
[291105.374026]  [<ffffffff811b1ddc>] SyS_ioctl+0x3c/0x70
[291105.374028]  [<ffffffff810026a5>] do_syscall_64+0x75/0x190
[291105.374031]  [<ffffffff8175070f>] entry_SYSCALL64_slow_path+0x25/0x25



[294382.416686] BUG: using __this_cpu_read() in preemptible [00000000 00000000]
code: qemu-system-x86/6891
[294382.416691] caller is __this_cpu_preempt_check+0x13/0x20
[294382.416693] CPU: 4 PID: 6891 Comm: qemu-system-x86 Not tainted
4.9.18-rt-rt14-xeon #4
[294382.416694] Hardware name: MSI MS-7759/Z77MA-G45 (MS-7759), BIOS V1.9
03/01/2013
[294382.416696]  ffffc90013e43b00 ffffffff813deaf4 0000000000000004
ffffffff819e4bd5
[294382.416698]  ffffc90013e43b30 ffffffff814028a6 ffffc90000001aeb
ffff8807e6594000
[294382.416699]  ffff8807e6597438 ffffc90013e43c50 ffffc90013e43b40
ffffffff814028e3
[294382.416700] Call Trace:
[294382.416705]  [<ffffffff813deaf4>] dump_stack+0x4f/0x6b
[294382.416708]  [<ffffffff814028a6>] check_preemption_disabled+0x116/0x120
[294382.416709]  [<ffffffff814028e3>] __this_cpu_preempt_check+0x13/0x20
[294382.416723]  [<ffffffffa038350a>] __get_kvmclock_ns+0x6a/0x100 [kvm]
[294382.416733]  [<ffffffffa03879cd>] get_kvmclock_ns+0xd/0x20 [kvm]
[294382.416742]  [<ffffffffa03b02ca>] get_time_ref_counter+0x4a/0x70 [kvm]
[294382.416750]  [<ffffffffa03b16b1>] kvm_hv_get_msr_common+0x351/0x4b0 [kvm]
[294382.416758]  [<ffffffffa0383cff>] kvm_get_msr_common+0x44f/0x650 [kvm]
[294382.416762]  [<ffffffffa07302f6>] vmx_get_msr+0xa6/0x480 [kvm_intel]
[294382.416765]  [<ffffffffa07316a2>] handle_rdmsr+0x32/0x90 [kvm_intel]
[294382.416768]  [<ffffffffa0734503>] vmx_handle_exit+0xe3/0x12d0 [kvm_intel]
[294382.416777]  [<ffffffffa038f09e>] kvm_arch_vcpu_ioctl_run+0xc8e/0x18b0
[kvm]
[294382.416786]  [<ffffffffa038f03b>] ? kvm_arch_vcpu_ioctl_run+0xc2b/0x18b0
[kvm]
[294382.416794]  [<ffffffffa0387ce2>] ? kvm_arch_vcpu_load+0x52/0x220 [kvm]
[294382.416801]  [<ffffffffa0379fb7>] kvm_vcpu_ioctl+0x337/0x590 [kvm]
[294382.416803]  [<ffffffff811b184a>] do_vfs_ioctl+0x9a/0x5f0
[294382.416805]  [<ffffffff811bd5f4>] ? __fget+0xc4/0x100
[294382.416807]  [<ffffffff811bd530>] ? expand_files+0x210/0x210
[294382.416808]  [<ffffffff811b1ddc>] SyS_ioctl+0x3c/0x70
[294382.416810]  [<ffffffff810026a5>] do_syscall_64+0x75/0x190
[294382.416813]  [<ffffffff8175070f>] entry_SYSCALL64_slow_path+0x25/0x25

-- 
You are receiving this mail because:
You are watching the assignee of the bug.



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux