Re: [PATCH v6 2/3] x86/entry_32: Clear CPU buffers after register restore in NMI return

From: Dave Hansen
Date: Thu Sep 12 2024 - 13:40:04 EST


On 9/5/24 09:00, Pawan Gupta wrote:
> CPU buffers are currently cleared after call to exc_nmi, but before
> register state is restored. This may be okay for MDS mitigation but not for
> RDFS. Because RDFS mitigation requires CPU buffers to be cleared when
> registers don't have any sensitive data.
>
> Move CLEAR_CPU_BUFFERS after RESTORE_ALL_NMI.

This needs some grammar tweaking, but we can do that when it get applied.

Acked-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>