From: Mahmoud Younes <m.younesbadr@gmail.com>
To: dave.hansen@linux.intel.com
Cc: linux-kernel@vger.kernel.org, luto@kernel.org,
Mahmoud Younes <m.younesbadr@gmail.com>
Subject: [PATCH] kaslr: x86: fixes log message nokaslr
Date: Sun, 31 Mar 2024 22:05:46 +0200 [thread overview]
Message-ID: <20240331200546.869343-1-m.younesbadr@gmail.com> (raw)
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
next reply other threads:[~2024-03-31 20:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-31 20:05 Mahmoud Younes [this message]
2024-03-31 20:28 ` Borislav Petkov
2024-04-01 5:38 ` Mahmoud Younes
2024-04-09 11:05 ` Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240331200546.869343-1-m.younesbadr@gmail.com \
--to=m.younesbadr@gmail.com \
--cc=dave.hansen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®