From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08E24606A31C for ; Sun, 29 Nov 2026 19:51:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=D3+DyWD7; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dVJTphed DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=6c681xm9NKrFnVwb6RjHHZZ5E1r97mn15lXSPIQh1Bs=; b=D3+DyWD7bbLquyEtnWK6b6rYe+ 9mLi4I3pm6DcUcuIsUrRz2xCmznF/+QpC7wZVTjecUTESOm2OWfUqm9Sc7l+//XY0JhFpP78cpaKD hnPOycSgQYlfvIkGY7UD0xy6m+/nxas9lLyKhyWoRolKp1lgyupOjnbudENUWF82Q+Cv0kM4tUEmr M/fyAKEyZSsr88amAEJYYttQoN4TYtdARgfiI0+4hCAg1i+78OGK363sf1IYl4S6VNrbQ8SHoxYLW kiwyTrUf0XdVh0fU+iTKMW0H1RdAlvsst5xLMYi3Ja2078WtvCFp2mUclbmE4T8XzCQSyZHzALfFd HgXSvfog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXkvq-00000002QQP-38bC; Sun, 29 Nov 2026 19:51:30 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXkvo-00000002QQG-1SFZ for kexec@lists.infradead.org; Sun, 29 Nov 2026 19:51:30 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id EEB1744488; Sun, 29 Nov 2026 19:51:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EADE51F000C1; Sun, 29 Nov 2026 19:51:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795981886; bh=6c681xm9NKrFnVwb6RjHHZZ5E1r97mn15lXSPIQh1Bs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=dVJTphed0m9GB9uaKJHucgbNZzwGs7OUWhmiqooArt1goflA7yYNKIlUrLgXAElzZ 7cjkr+O+awZnuw5TMnGTDdPYoJlzAoZyrlXm6hfJ6NN5aNPXL2igfnYc9+SPe5mOdN IC+37NuulDyHE2SwzRsZnq7mBD/RFYAdVEmaNRwBU1lbmy4EZTPlpl6kWgJQ8VmB0z 6RWuTJmK+ZxHNhrHYrUFaARYlmYOplxfa6WqtlcniYKdiNp7aWLoXWOaugOd5vCAc7 kUq8l91FNa4UEzRpfFrzb6BmvyjmL0gdBBli+dMldTua6yt3Ey8OpM5eEpyQqcB/zf mnDFX6EdvQoSQ== Date: Sun, 29 Nov 2026 21:51:19 +0200 From: Mike Rapoport To: sashiko-reviews@lists.linux.dev Cc: Chris Down , Pasha Tatashin , Pratyush Yadav , Alexander Graf , Baoquan He , Jonathan Corbet , Shuah Khan , kexec@lists.infradead.org, linux-mm@kvack.org, kernel-team@meta.com, Breno Leitao Subject: Re: [PATCH v2 1/7] kho: Reclaim the metadata page left reserved after kexec Message-ID: References: <4015fa169046f1ac59bf3d8b0218a2c2e6c7ed22.1795857773.git.chris@chrisdown.name> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kexec" X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Sun, Nov 29, 2026 at 06:28:32PM +0000, sashiko-bot@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 1 potential > issue to consider: > - [Low] kho: missing Fixes trailer for metadata page leak in > kho_in_kexec_metadata() > -- > > commit 7e9850ca466f4abcb7e3445a206026f7ef5a38d7 > Author: Chris Down > > > kho: Reclaim the metadata page left reserved after kexec > > > > After a KHO kexec, the new kernel keeps the page holding the previous > > kernel's kexec metadata reserved for as long as it runs. It only needs > > the page once, since kho_in_kexec_metadata() copies the previous release > > and the kexec count out of it at boot, and nothing reads it again. > > > > Free it with kho_restore_free() once copying is complete. > > > > Tested-by: Breno Leitao > > Reviewed-by: Pasha Tatashin > > Signed-off-by: Chris Down > > [Severity: Low] > This fixes a metadata page leak in kho_in_kexec_metadata(). Should it > include: > > Fixes: 76aa46b9e404 ("kho: kexec-metadata: track previous kernel chain") Nah, it's not worth the hassle. > -- > Sashiko AI review · https://sashiko.dev/#/patchset/cover.1795857773.git.chris@chrisdown.name?part=1 -- Sincerely yours, Mike.