Re: [PATCH v1 1/1] x86/fred: Fix the FRED RSP0 MSR out of sync with its per CPU cache
From: Dave Hansen
Date: Wed Jan 08 2025 - 15:14:27 EST
On 1/7/25 18:36, Xin Li (Intel) wrote:
> + * Another option is to leave the FRED RSP0 MSR as-is, because the RESET
> + * state of FRED MSRs is zero and INIT does not change the value of the
> + * FRED MSRs in a CPU offline/online cycle. But it doesn't seem safe to
> + * depend on the properties of INIT as that's way too many things that
> + * could cause bugs.
Wouldn't that also open us up to kexec problems? If the last kernel
(maybe not even Linux) left RSP0 set, then the current kernel might
eventually try to run userspace with the old kernel's RSP0 value.