From: "David Hildenbrand (Arm)" <david@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>,
mm-commits@vger.kernel.org, ziy@nvidia.com, usama.arif@linux.dev,
ryan.roberts@arm.com, nico.pache@linux.dev, liam@infradead.org,
lance.yang@linux.dev, kas@kernel.org, irogers@google.com,
dev.jain@arm.com, baolin.wang@linux.alibaba.com,
baohua@kernel.org, elkin@google.com
Subject: Re: + mm-huge_memory-check-vma-end-bounds-in-insert_pmd-and-insert_pud.patch added to mm-new branch
Date: Thu, 3 Dec 2026 08:58:09 +0100 [thread overview]
Message-ID: <7248ebfe-2b44-4fdc-a732-66d0b432d695@kernel.org> (raw)
In-Reply-To: <20261202204503.3DAE01F0089C@smtp.kernel.org>
On 12/2/26 21:45, Andrew Morton wrote:
> The patch titled
> Subject: mm/huge_memory: check VMA end bounds in insert_pmd() and insert_pud()
> has been added to the -mm mm-new branch. Its filename is
> mm-huge_memory-check-vma-end-bounds-in-insert_pmd-and-insert_pud.patch
>
> This patch will shortly appear at
> https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-huge_memory-check-vma-end-bounds-in-insert_pmd-and-insert_pud.patch
>
> This patch will later appear in the mm-new branch at
> git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
>
> Note, mm-new is a provisional staging ground for work-in-progress
> patches, and acceptance into mm-new is a notification for others take
> notice and to finish up reviews. Please do not hesitate to respond to
> review feedback and post updated versions to replace or incrementally
> fixup patches in mm-new.
>
> The mm-new branch of mm.git is not included in linux-next
>
> If a few days of testing in mm-new is successful, the patch will me moved
> into mm.git's mm-unstable branch, which is included in linux-next
>
> Before you just go and hit "reply", please:
> a) Consider who else should be cc'ed
> b) Prefer to cc a suitable mailing list as well
> c) Ideally: find the original patch on the mailing list and do a
> reply-to-all to that, adding suitable additional cc's
>
> *** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
>
> The -mm tree is included into linux-next via various
> branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
> and is updated there most days
>
> ------------------------------------------------------
> From: Elkin Cruz <elkin@google.com>
> Subject: mm/huge_memory: check VMA end bounds in insert_pmd() and insert_pud()
> Date: Wed, 02 Dec 2026 20:00:56 +0000
>
> insert_pmd() and insert_pud() currently check only that addr lies within
> [vma->vm_start, vma->vm_end), without verifying that the full PMD or PUD
> mapping fits below vma->vm_end.
>
> All current in-tree callers already validate VMA end alignment/bounds, so
> no existing user triggers this. Harden both helpers defensively by
> requiring addr + HPAGE_PMD_SIZE <= vma->vm_end in insert_pmd() and addr +
> HPAGE_PUD_SIZE <= vma->vm_end in insert_pud().
>
> Link: https://patch.msgid.link/20261202200056.3555477-1-elkin@google.com
> Signed-off-by: Elkin Cruz <elkin@google.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> Reviewed-by: David Hildenbrand (Arm) <david@kernel.org>
> Reviewed-by: Zi Yan <ziy@nvidia.com>
> Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
> Cc: Liam R. Howlett <liam@infradead.org>
> Cc: Nico Pache <nico.pache@linux.dev>
> Cc: Ryan Roberts <ryan.roberts@arm.com>
> Cc: Dev Jain <dev.jain@arm.com>
> Cc: Barry Song <baohua@kernel.org>
> Cc: Lance Yang <lance.yang@linux.dev>
> Cc: Usama Arif <usama.arif@linux.dev>
> Cc: Kiryl Shutsemau <kas@kernel.org>
> Cc: Ian Rogers <irogers@google.com>
>
> mm/huge_memory.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Will take this through my tree.
--
Cheers,
David
next prev parent reply other threads:[~2026-12-03 7:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 20:00 [PATCH v2] mm/huge_memory: check VMA end bounds in insert_pmd() and insert_pud() Elkin Cruz
2026-12-02 20:09 ` Zi Yan
2026-12-02 20:29 ` David Hildenbrand (Arm)
2026-12-02 20:45 ` + mm-huge_memory-check-vma-end-bounds-in-insert_pmd-and-insert_pud.patch added to mm-new branch Andrew Morton
2026-12-03 7:58 ` David Hildenbrand (Arm) [this message]
2026-12-03 6:04 ` [PATCH v2] mm/huge_memory: check VMA end bounds in insert_pmd() and insert_pud() Barry Song
2026-12-03 8:29 ` David Hildenbrand
2026-12-03 16:32 ` [-] mm-huge_memory-check-vma-end-bounds-in-insert_pmd-and-insert_pud.patch removed from -mm tree Andrew Morton
2026-12-04 8:55 ` [PATCH v2] mm/huge_memory: check VMA end bounds in insert_pmd() and insert_pud() Baolin Wang
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=7248ebfe-2b44-4fdc-a732-66d0b432d695@kernel.org \
--to=david@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=baohua@kernel.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=dev.jain@arm.com \
--cc=elkin@google.com \
--cc=irogers@google.com \
--cc=kas@kernel.org \
--cc=lance.yang@linux.dev \
--cc=liam@infradead.org \
--cc=mm-commits@vger.kernel.org \
--cc=nico.pache@linux.dev \
--cc=ryan.roberts@arm.com \
--cc=usama.arif@linux.dev \
--cc=ziy@nvidia.com \
/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.