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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150312173056.GD25505@pd.tnic>
Date:	Thu, 12 Mar 2015 18:30:56 +0100
From:	Borislav Petkov <bp@...en8.de>
To:	Joel Schopp <joel.schopp@....com>
Cc:	"Luck, Tony" <tony.luck@...el.com>,
	"jesse.larrew@....com" <jesse.larrew@....com>,
	"x86@...nel.org" <x86@...nel.org>,
	Thomas Gleixner <tglx@...utronix.de>,
	Ingo Molnar <mingo@...hat.com>,
	"H. Peter Anvin" <hpa@...or.com>,
	"linux-edac@...r.kernel.org" <linux-edac@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mce: use safe MSR accesses

On Thu, Mar 12, 2015 at 12:20:07PM -0500, Joel Schopp wrote:
> These MSRs don't make sense in guest mode.  The real question is if we
> fix that in KVM, here, or both.  I'm a fan of fixing it in both places. 
> Xen's behavior is to return a value of 0 if the guest tries to access
> these, that seems like a reasonable thing to do in KVM as well.  I am
> volunteering myself to write that patch for KVM, but I would encourage

This should be first and foremost fixed in KVM as it is KVM which is
advertizing MCA CPUID feature and the guest simply uses it with all MSRs
which belong to it.

> accepting an updated version of this patch as well.

If you want to do that, I'd suggest using the error checking variants
in arch/x86/lib/msr.c which should also facilitate toggling of bits in
MSRs.

> Initializing val to 0 where it is declared should have the desired
> effect.

Yes, as long as KVM returns 0 for MC4_MISC0/1.

Thanks.

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ