From: Dave Hansen <dave.hansen@intel.com>
To: Breno Leitao <leitao@debian.org>,
Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
Tom Lendacky <thomas.lendacky@amd.com>,
Neeraj Upadhyay <Neeraj.Upadhyay@amd.com>,
Nikunj A Dadhania <nikunj@amd.com>
Cc: linux-kernel@vger.kernel.org, catalin.marinas@arm.com,
kernel-team@meta.com
Subject: Re: [PATCH v2] x86/sev: Fix kmemleak false positive for the RMP segment descriptors
Date: Tue, 3 Nov 2026 08:34:44 -0800 [thread overview]
Message-ID: <a1ebdc9e-bddf-4eb1-ab8b-d2a39f789e3b@intel.com> (raw)
In-Reply-To: <20261103-sev-rmp-kmemleak-v2-1-9c1ba28cf7c5@debian.org>
On 11/3/26 06:01, Breno Leitao wrote:
> - page = alloc_page(__GFP_ZERO);
> - if (!page)
> + rmp_segment_table = kzalloc(RST_SIZE, GFP_KERNEL);
> + if (!rmp_segment_table)
> return false;
Hah, and that even made the code better because the old alloc_page()
wan't even connected to RST_SIZE. No checks anywhere.
prev parent reply other threads:[~2026-11-03 16:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 14:01 Breno Leitao
2026-11-03 16:34 ` Dave Hansen [this message]
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=a1ebdc9e-bddf-4eb1-ab8b-d2a39f789e3b@intel.com \
--to=dave.hansen@intel.com \
--cc=Neeraj.Upadhyay@amd.com \
--cc=bp@alien8.de \
--cc=catalin.marinas@arm.com \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=kernel-team@meta.com \
--cc=leitao@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=nikunj@amd.com \
--cc=tglx@kernel.org \
--cc=thomas.lendacky@amd.com \
--cc=x86@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®