Re: [PATCH v3 15/35] x86/bugs: Restructure spectre_v2 mitigation
From: Josh Poimboeuf
Date: Mon Feb 10 2025 - 20:07:48 EST
On Wed, Jan 08, 2025 at 02:24:55PM -0600, David Kaplan wrote:
> +static void __init spectre_v2_update_mitigation(void)
> +{
> + if (spectre_v2_cmd == SPECTRE_V2_CMD_AUTO) {
> + if (IS_ENABLED(CONFIG_MITIGATION_IBRS_ENTRY) &&
> + boot_cpu_has_bug(X86_BUG_RETBLEED) &&
> + retbleed_mitigation != RETBLEED_MITIGATION_NONE &&
> + retbleed_mitigation != RETBLEED_MITIGATION_STUFF &&
> + boot_cpu_has(X86_FEATURE_IBRS) &&
> + boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) {
> + spectre_v2_enabled = SPECTRE_V2_IBRS;
> + }
> + }
This has a dependency on retbleed_update_mitigation() which hasn't run
yet?
--
Josh