From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A2E1C4320E for ; Thu, 26 Aug 2021 09:12:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7C3766108E for ; Thu, 26 Aug 2021 09:12:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240857AbhHZJM5 (ORCPT ); Thu, 26 Aug 2021 05:12:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:56164 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240568AbhHZJMz (ORCPT ); Thu, 26 Aug 2021 05:12:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6DBCE610A7; Thu, 26 Aug 2021 09:12:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629969129; bh=meKhmtBmoGyefNNnjjVv3WI9mW4s09+k2cghNqEPaJg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dzPaqZkmsRvCr4GM8GIyS55/EbB74uaI+c07Sy4nbXsrYn2bd1HZSmZt9+GGPZOJw qW5B+5tgmuaQktGLxSLPtfzWp8VP9uGEdSMCRNg+AjCUSAbbhc5AsbW/f/Peyhh6h/ aUjoHRXE/t/iOqglsrA6qnRNLIncZz0WoUWzFcotAwWKemab1lVMc+/UuOsfWKUpg4 3mURqpeiZR2wctswidzkUhtXjeyxlvPajppqvkze0yN1HjQ9/TPOuLZJwayDVYx5z7 SL+HYuKO32gYJDd/7vLlOd1EKjjQnG6YdeSt4Bpae32Gd/hhk5CqTCkxJ7A6xBK4V9 4Obr0ZZNxpm7Q== From: Masami Hiramatsu To: Steven Rostedt Cc: Masami Hiramatsu , LKML 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 Message-Id: <162996912688.236535.4047855429538984099.stgit@devnote2> X-Mailer: git-send-email 2.25.1 In-Reply-To: <162996911932.236535.7533708592332223449.stgit@devnote2> References: <162996911932.236535.7533708592332223449.stgit@devnote2> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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();