All of lore.kernel.org
 help / color / mirror / Atom feed
From: Breno Leitao <leitao@debian.org>
To: Dave Hansen <dave.hansen@intel.com>
Cc: 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>,
	linux-kernel@vger.kernel.org,  catalin.marinas@arm.com,
	kernel-team@meta.com
Subject: Re: [PATCH] x86/sev: Fix kmemleak false positive for the RMP segment descriptors
Date: Tue, 3 Nov 2026 01:34:36 -0800	[thread overview]
Message-ID: <aumqYDB-9R4njxEj@gmail.com> (raw)
In-Reply-To: <b004e572-8d52-447a-b5b2-10bed36896b2@intel.com>

On Mon, Nov 02, 2026 at 02:54:06PM -0800, Dave Hansen wrote:
> >> Why don't we just kmalloc() the thing?
> >
> > That would do the work as well, if this is an option.
> 
> I don't see a reason it needs to be allocated directly by the page
> allocator. My friendly LLM agrees with me. kmalloc(PAGE_SIZE) aligns to
> page boundaries and has for years.
> 
> BTW, there's almost no reason to use the page allocator directly these days.

Ack. Let me respin and use kmalloc, and use kmalloc(), simplifying the
fix.

Thanks for the review and suggestion,
--breno

      reply	other threads:[~2026-11-03  9:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-02 16:49 [PATCH] x86/sev: Fix kmemleak false positive for the RMP segment descriptors Breno Leitao
2026-11-02 20:48 ` Dave Hansen
2026-11-02 22:30   ` Breno Leitao
2026-11-02 22:54     ` Dave Hansen
2026-11-03  9:34       ` Breno Leitao [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=aumqYDB-9R4njxEj@gmail.com \
    --to=leitao@debian.org \
    --cc=Neeraj.Upadhyay@amd.com \
    --cc=bp@alien8.de \
    --cc=catalin.marinas@arm.com \
    --cc=dave.hansen@intel.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=kernel-team@meta.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.