Re: [PATCH] x86/mce: Zero the injected error record before logging it

From: Borislav Petkov

Date: Wed Sep 09 2026 - 23:59:53 EST


On Thu, Sep 10, 2026 at 11:32:17AM +0800, Yifei Chu wrote:
> Reproduced with CONFIG_X86_MCE_INJECT: writing "sw" to flags and
> injecting a bank/status makes the mce_record tracepoint print random
> vendor data, e.g.
>
> vendor data: {0xb3,0x8a,0xb5,0x41,0x0,0x0,0x0,0x0,
> 0x67,0x93,0xbc,0xa8,0xff,0xff,0xff,0xff}

And? Who cares?

> Fixes: d4fca1358ea9 ("x86/MCE/AMD: Add support for new MCA_SYND{1,2} registers")
> Cc: stable@xxxxxxxxxxxxxxx

Backport it everywhere? A MCE injection fix?

You must be joking.

> Reported-by: Abaci <abaci@xxxxxxxxxxxxxxxxx>
> Assisted-by: abaci:qwen3.8-max

This is now

Assisted-by: LLM

--
Regards/Gruss,
Boris.

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