mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kaslr: x86: fixes log message nokaslr
@ 2024-03-31 20:05 Mahmoud Younes
  2024-03-31 20:28 ` Borislav Petkov
  0 siblings, 1 reply; 4+ messages in thread
From: Mahmoud Younes @ 2024-03-31 20:05 UTC (permalink / raw)
  To: dave.hansen; +Cc: linux-kernel, luto, Mahmoud Younes

Unknown kernel command line parameters nokaslr message will be printed
to kernel log buffer if nokaslr option exists in boot command line.
nokaslr gets consumed earlier and this message becomes confusing.
impact is that user gets confused whether kaslr is enabled or not.

Signed-off-by: Mahmoud Younes <m.younesbadr@gmail.com>
---
 arch/x86/mm/kaslr.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/x86/mm/kaslr.c b/arch/x86/mm/kaslr.c
index 37db264866b6..a62cb0675e22 100644
--- a/arch/x86/mm/kaslr.c
+++ b/arch/x86/mm/kaslr.c
@@ -179,3 +179,9 @@ void __meminit init_trampoline_kaslr(void)
 			__pgd(_KERNPG_TABLE | __pa(pud_page_tramp));
 	}
 }
+
+static int __init parse_nokaslr(char *_)
+{
+	return 0;
+}
+early_param("nokaslr", parse_nokaslr);
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-09 11:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-31 20:05 [PATCH] kaslr: x86: fixes log message nokaslr Mahmoud Younes
2024-03-31 20:28 ` Borislav Petkov
2024-04-01  5:38   ` Mahmoud Younes
2024-04-09 11:05     ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®