From patchwork Wed Sep 15 13:19:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 12496239 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=-11.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 CFCDDC433FE for ; Wed, 15 Sep 2021 13:19:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 699D861279 for ; Wed, 15 Sep 2021 13:19:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 699D861279 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 9A4E66B0071; Wed, 15 Sep 2021 09:19:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 953736B0072; Wed, 15 Sep 2021 09:19:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 86A20900002; Wed, 15 Sep 2021 09:19:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0188.hostedemail.com [216.40.44.188]) by kanga.kvack.org (Postfix) with ESMTP id 762B36B0071 for ; Wed, 15 Sep 2021 09:19:32 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id DAAE93E571 for ; Wed, 15 Sep 2021 13:19:31 +0000 (UTC) X-FDA: 78589864542.20.1C1FE56 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf08.hostedemail.com (Postfix) with ESMTP id 8048D30000AC for ; Wed, 15 Sep 2021 13:19:31 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 0B2126121F; Wed, 15 Sep 2021 13:19:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631711970; bh=e/WesGgcVk0aOw16WbSTFrc8uzKCIhuU6oYF3jpAddo=; h=From:To:Cc:Subject:Date:From; b=tZcqFjEHCm1QFWDhx10RIjZZ4zVVb4dQ3QcDPEGx0PKeRWXldFbFYZj6U1w+aWh/4 59I4hTuw3/ML03joE8WTnakK0qTLYXn1MLRMSgxfouFXmMdpxClrIgZyDFi5VcBa3R fK3ZH198F6EDtkP/6NjlsuhXsFndZ0XsMZNPTWGTHyUhycQwsDuPwusNarv8eRHncA ZIUhufVibfCRFXKv7JiXpX83VCIYOORsKZssF1CMTFKFomLxvdZykLxoW/sGeT7QDU 6tyd4dokSTs8GkOSXDwP5tZMWSy4BjauqRxJ2e4Xyts8+bAxbOfXhk82O3Ov4oz4u6 kVVY2wVPEs8Vw== From: Masami Hiramatsu To: Steven Rostedt Cc: Linus Torvalds , Mike Rapoport , Andrew Morton , LKML , Ingo Molnar , Masami Hiramatsu , Linux-MM , Vlastimil Babka Subject: [PATCH v3 0/3] bootconfig: Fixes to bootconfig memory management Date: Wed, 15 Sep 2021 22:19:27 +0900 Message-Id: <163171196689.590070.15063104707696447188.stgit@devnote2> X-Mailer: git-send-email 2.25.1 User-Agent: StGit/0.19 MIME-Version: 1.0 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 8048D30000AC Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=tZcqFjEH; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf08.hostedemail.com: domain of mhiramat@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=mhiramat@kernel.org X-Stat-Signature: x9uwbm6ijaqrw1jo4xufzndzffjrbgyy X-HE-Tag: 1631711971-831618 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hello, Here are the series of patches to fix bootconfig memory management issues. In this version, I removed unneeded patches and add a patch to free xbc_data in xbc_destroy_all(). But still I'm thinking how I can move lib/bootconfig.c and bootconfig.h to share with tools, because those functions/data are __init and __initdata. At least I have to add a dummy macro for those in userspace. Thus the tools/bootconfig build error is still there. I'll fix that in another series. Thank you, --- Masami Hiramatsu (3): bootconfig: init: Fix memblock leak in xbc_make_cmdline() bootconfig: init: Fix memblock leak in setup_boot_config() bootconfig: Free xbc_data in xbc_destroy_all() init/main.c | 2 ++ lib/bootconfig.c | 3 +++ 2 files changed, 5 insertions(+)