Skip to content

Commit de9f5f7

Browse files
jpoimboebp3tk0v
authored andcommitted
x86/srso: Print mitigation for retbleed IBPB case
When overriding the requested mitigation with IBPB due to retbleed=ibpb, print the mitigation in the usual format instead of a custom error message. Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Acked-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/ec3af919e267773d896c240faf30bfc6a1fd6304.1693889988.git.jpoimboe@kernel.org
1 parent 3fc7b28 commit de9f5f7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

arch/x86/kernel/cpu/bugs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,9 +2425,8 @@ static void __init srso_select_mitigation(void)
24252425

24262426
if (retbleed_mitigation == RETBLEED_MITIGATION_IBPB) {
24272427
if (has_microcode) {
2428-
pr_err("Retbleed IBPB mitigation enabled, using same for SRSO\n");
24292428
srso_mitigation = SRSO_MITIGATION_IBPB;
2430-
goto pred_cmd;
2429+
goto out;
24312430
}
24322431
}
24332432

@@ -2490,7 +2489,8 @@ static void __init srso_select_mitigation(void)
24902489
break;
24912490
}
24922491

2493-
pr_info("%s%s\n", srso_strings[srso_mitigation], (has_microcode ? "" : ", no microcode"));
2492+
out:
2493+
pr_info("%s%s\n", srso_strings[srso_mitigation], has_microcode ? "" : ", no microcode");
24942494

24952495
pred_cmd:
24962496
if ((!boot_cpu_has_bug(X86_BUG_SRSO) || srso_cmd == SRSO_CMD_OFF) &&

0 commit comments

Comments
 (0)