Skip to contentSkip to conversation

New: ignore_msrs kernel NULL pointer dereference since 12bc2132b15e0a969b3f455d90a5f215ef239eff

Bug 209845 [email protected] 2 participants 3 messages Oct 25, 2020 KVM

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 209845
           Summary: ignore_msrs kernel NULL pointer dereference since
                    12bc2132b15e0a969b3f455d90a5f215ef239eff
           Product: Virtualization
           Version: unspecified
    Kernel Version: 5.9
          Hardware: x86-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: kvm
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

Created attachment 293183
--> https://bugzilla.kernel.org/attachment.cgi?id=293183&action=edit
dmesg section

Since commit 12bc2132b15e0a969b3f455d90a5f215ef239eff kvm crashes with a null pointer dereference when ignore_msrs is set (log in attachement)

Hardware: AMD Ryzen 3700x

other reports:
-
https://www.reddit.com/r/VFIO/comments/jdh9pp/so_i_just_updated_to_kernel_591_and/

- https://forum.manjaro.org/t/kernel-5-9-no-virtualization/31562

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw
Quoted 19 lines · On Sun, Oct 25, 2020 at 11:28:21AM +0000, [email protected]…

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

            Bug ID: 209845
           Summary: ignore_msrs kernel NULL pointer dereference since
                    12bc2132b15e0a969b3f455d90a5f215ef239eff
           Product: Virtualization
           Version: unspecified
    Kernel Version: 5.9
          Hardware: x86-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: kvm
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No
Quoted 8 lines

Created attachment 293183
--> https://bugzilla.kernel.org/attachment.cgi?id=293183&action=edit
dmesg section

Since commit 12bc2132b15e0a969b3f455d90a5f215ef239eff kvm crashes with a null pointer dereference when ignore_msrs is set (log in attachement)

Hardware: AMD Ryzen 3700x

kvm_msr_ignored_check() should consider vcpu null case for kvm vm get msr features.. I'll post a fix soon, probably with a selftest too. Thanks,

Signature · 1 line
Peter Xu
#2 lore raw

[Bug 209845] ignore_msrs kernel NULL pointer dereference since 12bc2132b15e0a969b3f455d90a5f215ef239eff

In reply to [email protected]

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

--- Comment #1 from [email protected] ---

Quoted 19 lines · On Sun, Oct 25, 2020 at 11:28:21AM +0000, [email protected]…

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

            Bug ID: 209845
           Summary: ignore_msrs kernel NULL pointer dereference since
                    12bc2132b15e0a969b3f455d90a5f215ef239eff
           Product: Virtualization
           Version: unspecified
    Kernel Version: 5.9
          Hardware: x86-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: kvm
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No
Quoted 8 lines

Created attachment 293183
--> https://bugzilla.kernel.org/attachment.cgi?id=293183&action=edit
dmesg section

Since commit 12bc2132b15e0a969b3f455d90a5f215ef239eff kvm crashes with a null pointer dereference when ignore_msrs is set (log in attachement)

Hardware: AMD Ryzen 3700x

kvm_msr_ignored_check() should consider vcpu null case for kvm vm get msr features.. I'll post a fix soon, probably with a selftest too. Thanks,

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.