LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Masami Hiramatsu <mhiramat@kernel.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 1/3] init: bootconfig: Remove all bootconfig data when the init memory is removed
Date: Thu, 26 Aug 2021 18:12:07 +0900 [thread overview]
Message-ID: <162996912688.236535.4047855429538984099.stgit@devnote2> (raw)
In-Reply-To: <162996911932.236535.7533708592332223449.stgit@devnote2>
Since the bootconfig is used only in the init functions,
it doesn't need to keep the data after boot. Free it when
the init memory is removed.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
---
init/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/init/main.c b/init/main.c
index 8d97aba78c3a..d9b0a99bb2dd 100644
--- a/init/main.c
+++ b/init/main.c
@@ -1493,6 +1493,7 @@ static int __ref kernel_init(void *unused)
kprobe_free_init_mem();
ftrace_free_init_mem();
kgdb_free_init_mem();
+ xbc_destroy_all();
free_initmem();
mark_readonly();
next prev parent reply other threads:[~2021-08-26 9:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-26 9:11 [PATCH 0/3] bootconfig: Cleanup and reorder the init parameter from bootconfig Masami Hiramatsu
2021-08-26 9:12 ` Masami Hiramatsu [this message]
2021-08-26 14:04 ` [PATCH 1/3] init: bootconfig: Remove all bootconfig data when the init memory is removed kernel test robot
2021-08-26 14:04 ` kernel test robot
2021-08-26 14:27 ` Masami Hiramatsu
2021-08-26 9:12 ` [PATCH 2/3] init/bootconfig: Reorder init parameter from bootconfig and cmdline Masami Hiramatsu
2021-08-26 9:12 ` [PATCH 3/3] docs: bootconfig: Add how to use bootconfig for kernel parameters Masami Hiramatsu
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=162996912688.236535.4047855429538984099.stgit@devnote2 \
--to=mhiramat@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--subject='Re: [PATCH 1/3] init: bootconfig: Remove all bootconfig data when the init memory is removed' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).