Re: [PATCH v2] x86/mce: fix wrong no-return-ip logic in do_machine_check()

From: Borislav Petkov
Date: Mon Feb 22 2021 - 05:09:41 EST


On Mon, Feb 22, 2021 at 05:31:09PM +0800, Aili Yao wrote:
> you can inject a memory UE to a VM, it should always be MCG_STATUS_RIPV 0.

So the signature you injected is not something the hardware would
generate - you just didn't set MCG_STATUS_RIPV.

If so, why should the code handle invalid signatures which the harware
cannot generate?

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette