lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240331200546.869343-1-m.younesbadr@gmail.com>
Date: Sun, 31 Mar 2024 22:05:46 +0200
From: Mahmoud Younes <m.younesbadr@...il.com>
To: dave.hansen@...ux.intel.com
Cc: linux-kernel@...r.kernel.org,
	luto@...nel.org,
	Mahmoud Younes <m.younesbadr@...il.com>
Subject: [PATCH] kaslr: x86: fixes log message nokaslr

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@...il.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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ