lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <c9d8269bff69f6359731d758e3b1135dedd7cc61.camel@redhat.com>
Date: Fri, 18 Oct 2024 20:48:45 -0400
From: Maxim Levitsky <mlevitsk@...hat.com>
To: kvm@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Sean Christopherson <seanjc@...gle.com>
Subject: vmx_pmu_caps_test fails on Skylake based CPUS due to read only LBRs

Hi,

Our CI found another issue, this time with vmx_pmu_caps_test.

On 'Intel(R) Xeon(R) Gold 6328HL CPU' I see that all LBR msrs (from/to and TOS),
are always read only - even when LBR is disabled - once I disable the feature in DEBUG_CTL,
all LBR msrs reset to 0, and you can't change their value manually.
Freeze LBRS on PMI seems not to affect this behavior.

I don't know if this is how the hardware is supposed to work (Intel's manual doesn't mention anything about this), 
or if it is something platform specific, because this system also was found to have LBRs enabled 
(IA32_DEBUGCTL.LBR == 1) after a fresh boot, as if BIOS left them enabled - I don't have an idea on why.

The problem is that vmx_pmu_caps_test writes 0 to LBR_TOS via KVM_SET_MSRS, and KVM actually passes this write to
actual hardware msr (this is somewhat wierd), and since the MSR is not writable and silently drops writes instead,
once the test tries to read it, it gets some random value instead.

Any advice?

Best regards,
	Maxim Levitsky



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ