Re: [PATCH v4 05/39] x86/fpu/xstate: Introduce CET MSR and XSAVES supervisor states

From: Borislav Petkov
Date: Tue Dec 20 2022 - 06:33:18 EST


On Fri, Dec 02, 2022 at 04:35:32PM -0800, Rick Edgecombe wrote:
> @@ -252,6 +254,14 @@ struct pkru_state {
> u32 pad;
> } __packed;
>
> +/*
> + * State component 11 is Control-flow Enforcement user states
> + */
> +struct cet_user_state {
> + u64 user_cet; /* user control-flow settings */
> + u64 user_ssp; /* user shadow stack pointer */

Please put those side comments over the members, like struct fpstate
does it in that same file.

Rest looks good.

Thx.

--
Regards/Gruss,
Boris.

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