mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Gupta, Pankaj" <pankaj.gupta@amd.com>
To: "Mike Rapoport (Microsoft)" <rppt@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	David Hildenbrand <david@kernel.org>
Cc: Kiryl Shutsemau <kas@kernel.org>,
	"Liam R. Howlett" <liam@infradead.org>,
	Lorenzo Stoakes <ljs@kernel.org>, Michal Hocko <mhocko@suse.com>,
	Suren Baghdasaryan <surenb@google.com>,
	Vlastimil Babka <vbabka@kernel.org>,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	stable@vger.kernel.org
Subject: Re: [PATCH 0/2] mm/cma: accept memory of CMA areas reserved with memblock_reserve()
Date: Mon, 2 Nov 2026 15:41:43 +0100	[thread overview]
Message-ID: <37a625b6-45b5-4bfc-878b-ffc16784b0f1@amd.com> (raw)
In-Reply-To: <20261029-cma-multi-v1-0-2cbced8b5cb7@kernel.org>


> Pages of allocated CMA areas are released to the buddy allocator with
> __free_pages(), which does not check for unaccepted memory.
>
> This usually works because memblock accepts the memory it allocates.
>
> However, multi-range CMA areas, used by hugetlb_cma, and fixed CMA areas
> requested with cma=<size>@<base> are reserved with memblock_reserve() and
> their memory is never accepted.
>
> On TDX and SEV-SNP guests the first access to such a page is fatal.
>
> To ease the backporting, each case is addressed by a separate patch:
> - patch 1 accepts the memory of multi-range CMA areas
> - patch 2 does the same for the fixed CMA areas
>
> The second patch won't apply cleanly to 6.6 and 6.12, but I believe the
> stable team LLMs will take care of that :)
>
> ---
> Mike Rapoport (Microsoft) (2):
>        mm/cma: accept memory of multi-range CMA areas
>        mm/cma: accept memory of CMA areas reserved at a fixed address

For the series:

Reviewed-by: Pankaj Gupta <pankaj.gupta@amd.com>
Tested-by: Pankaj Gupta <pankaj.gupta@amd.com>

>
>   mm/cma.c | 4 ++++
>   1 file changed, 4 insertions(+)
> ---
> base-commit: 5b0764a53235d3c77e1ed674e836e1b3fe1a4b1f
> change-id: 20261029-cma-multi-97fd4e58aa08
>
> --
> Sincerely yours,
> Mike.
>
>

      parent reply	other threads:[~2026-11-02 14:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-29 10:18 Mike Rapoport (Microsoft)
2026-10-29 10:18 ` [PATCH 1/2] mm/cma: accept memory of multi-range CMA areas Mike Rapoport (Microsoft)
2026-10-29 10:52   ` Gupta, Pankaj
2026-10-29 12:19     ` Mike Rapoport
2026-11-02 14:55       ` Gupta, Pankaj
2026-10-29 10:18 ` [PATCH 2/2] mm/cma: accept memory of CMA areas reserved at a fixed address Mike Rapoport (Microsoft)
2026-10-29 12:27 ` [PATCH 0/2] mm/cma: accept memory of CMA areas reserved with memblock_reserve() Kiryl Shutsemau
2026-10-29 12:40   ` Mike Rapoport
2026-10-29 13:17     ` Kiryl Shutsemau
2026-10-29 15:03       ` Mike Rapoport
2026-10-29 15:39         ` Kiryl Shutsemau
2026-11-02 14:41 ` Gupta, Pankaj [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=37a625b6-45b5-4bfc-878b-ffc16784b0f1@amd.com \
    --to=pankaj.gupta@amd.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@kernel.org \
    --cc=kas@kernel.org \
    --cc=liam@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=ljs@kernel.org \
    --cc=mhocko@suse.com \
    --cc=rppt@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=surenb@google.com \
    --cc=vbabka@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®