Re: [PATCH 2/5] x86/mce/inject: Set the valid bit in MCA_STATUS before error injection

From: Borislav Petkov
Date: Fri Sep 24 2021 - 04:26:39 EST


On Wed, Sep 15, 2021 at 06:27:36PM -0500, Smita Koralahalli wrote:
> MCA handlers check the valid bit in each status register (MCA_STATUS[Val])
> and examine the remainder of the status register only if the valid bit is
> set.
>
> Set the valid bit in the corresponding MCA_STATUS register if the user
> forgets to set it while doing error simulation.

Why, maybe the user wants to inject with Val not set. You could warn
here instead and state that handlers will likely ignore signatures with
Val=0.

--
Regards/Gruss,
Boris.

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