Commit fbe80bd6 authored by Ronan Pigott's avatar Ronan Pigott Committed by Borislav Petkov (AMD)
Browse files

x86/split_lock: Don't warn about unknown split_lock_detect parameter



The split_lock_detect command line parameter is handled in sld_setup() shortly
after cpu_parse_early_param() but still before parse_early_param().

Add a dummy parsing function so that parse_early_param() doesn't later
complain about the "unknown" parameter split_lock_detect=, and pass it along
to init.

  [ bp: Massage commit message. ]

Signed-off-by: default avatarRonan Pigott <ronan@rjp.ie>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260405181807.3906-1-ronan@rjp.ie
parent f44cc3a4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -132,6 +132,12 @@ static void __init sld_state_setup(void)
	sld_state = state;
}

static __init int setup_split_lock_detect(char *arg)
{
	return 1;
}
__setup("split_lock_detect=", setup_split_lock_detect);

static void __init __split_lock_setup(void)
{
	if (!split_lock_verify_msr(false)) {