linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Lorenzo Stoakes (Oracle)" <ljs@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,
	 "David Hildenbrand (Arm)" <david@kernel.org>,
	Zi Yan <ziy@nvidia.com>,
	 Baolin Wang <baolin.wang@linux.alibaba.com>,
	"Liam R . Howlett" <Liam.Howlett@oracle.com>,
	 Nico Pache <npache@redhat.com>,
	Ryan Roberts <ryan.roberts@arm.com>, Dev Jain <dev.jain@arm.com>,
	 Barry Song <baohua@kernel.org>,
	Lance Yang <lance.yang@linux.dev>,
	 Matthew Wilcox <willy@infradead.org>,
	Chris Down <chris@chrisdown.name>,
	 Suren Baghdasaryan <surenb@google.com>,
	Mike Rapoport <rppt@kernel.org>,
	linux-mm@kvack.org,  linux-kernel@vger.kernel.org
Subject: Re: [PATCH mm-hotfixes] mm/huge_memory: fix memory corruption on huge zero page move
Date: Wed, 4 Mar 2026 11:41:16 +0000	[thread overview]
Message-ID: <c4d29d08-50c3-46f8-a9ad-95f3ce552734@lucifer.local> (raw)
In-Reply-To: <20260303174226.1b9079ccd60164fe0b28a3e1@linux-foundation.org>

On Tue, Mar 03, 2026 at 05:42:26PM -0800, Andrew Morton wrote:
> On Tue, 3 Mar 2026 07:25:32 +0000 Lorenzo Stoakes <lorenzo.stoakes@oracle.com> wrote:
>
> > On Mon, Mar 02, 2026 at 12:50:32PM -0800, Andrew Morton wrote:
> > > On Mon, 2 Mar 2026 17:19:15 +0000 Lorenzo Stoakes <lorenzo.stoakes@oracle.com> wrote:
> > >
> > > > On Mon, Mar 02, 2026 at 06:10:06PM +0100, David Hildenbrand (Arm) wrote:
> > > > > There are already patches in flight:
> > > > >
> > > > > https://lore.kernel.org/r/aaBVaHs8rIkNcwM0@chrisdown.name
> > > >
> > > > Yup, if people would actually cc the right people I'd not have wasted my
> > > > afternoon.
> > > >
> > > > Replying there.
> > > >
> > >
> > > I'm not sure where this is headed but I'll queue this patch for now, to
> > > get it some testing, to lessen duplicated bug reports and to generally track things.
> >
> > Hi Andrew -
>
> Who is a confused person!
>
> > We should drop my patch and take Chris's.
>
> "my patch" being "mm/huge_memory: fix memory corruption on huge zero
> page move", I assume.

Yes :)

>
> > However, life isn't so simple :) as there's been some confusion with his series
> > since his email client seemed to mess up somehow and a couple patches need to be
> > squashed on one another.
> >
> > So to make life easier, I enclose a squashed patch (combining the commit
> > message from both), with my R-b, T-b tags attached, please replace my patch
> > with this one.
>
> OK.  I added your signed-off-by also.

Thanks, probaby appropriate.

>
> > Also, could you make this into a 2 patch series with
> > https://lore.kernel.org/linux-mm/aaBWG4fajXXbjpVN@chrisdown.name/ _after_ this
> > one?
>
> Well, "mm/huge_memory: Fix use of NULL folio in move_pages_huge_pmd()"
> is a cc:stable mm-hotfix and I don't think "selftests/mm: Add UFFDIO_MOVE
> huge zeropage PMD regression test" is to be treated that way?
>
> If correct, I'd keep "selftests/mm: Add UFFDIO_MOVE huge zeropage PMD
> regression test" as a standalone singleton in mmm-unstable.

If you can _ensure_ the fix appears in the commit list and in -next _before_ the
test then yes.

>
> > mm-unstable (I'm not sure why we're rushing changes there so quick...) had
> > _only_ this regression test patch in it, so we were left with a kernel that
> > splatted on running mm selftests, which is not what we want.
>
> But the regression fix "mm/huge_memory: fix memory corruption on huge
> zero page move" was in mm-hotfixes, cc:stable?

Chris sent 3 patches, the first two addressed the bug, the 3rd was the test. The
first 2 had review feedback, but for some reason the test was taken, and then
taken to mm-unstable almost immediately.

(This is partly why I wasted my time tracking down the bug in mm-unstable and
ended up independently fixing it...)

I think things were confused by Chris's email client somehow messing up sending
the series which we not threaded etc.

>
> > (It seems to me this is what mm-new is for, and it seems we have some holes in
> > our testing still since this got thorugh).
> >
> > Please drop the patch you have for this already in mm-unstable and make sure we
> > only have it _after_ the fix is applied :)
>
> I think you mean to drop "mm/huge_memory: fix memory corruption on huge
> zero page move" from mm-hotfixes.

Yes drop mine.

>
>
> So we now have
>
> "mm/huge_memory: fix use of NULL folio in move_pages_huge_pmd()" in
> mm-hotfixes, cc:stable
>
> "selftests/mm: add UFFDIO_MOVE huge zeropage PMD regression test" in
> mm-unstable, not cc:stable.
>
> btw, "selftests/mm: add UFFDIO_MOVE huge zeropage PMD regression test"
> still has a bunch of unaddressed review comments from David.

I mean let's not have it in mm-unstable then? Things should only transition from
mm-new to mm-unstable/-next if the review is in a good state.

Generally we go easier on tests sure, but if there's any hint of it being a
regression test we have to tread carefully, or we end up splatting people's
kernels and cause unnecessary issues.

>
>

Thanks, Lorenzo


      reply	other threads:[~2026-03-04 11:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-02 17:06 Lorenzo Stoakes
2026-03-02 17:10 ` David Hildenbrand (Arm)
2026-03-02 17:19   ` Lorenzo Stoakes
2026-03-02 20:50     ` Andrew Morton
2026-03-03  7:25       ` Lorenzo Stoakes
2026-03-03  8:49         ` David Hildenbrand (Arm)
2026-03-04  1:42         ` Andrew Morton
2026-03-04 11:41           ` Lorenzo Stoakes (Oracle) [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=c4d29d08-50c3-46f8-a9ad-95f3ce552734@lucifer.local \
    --to=ljs@kernel.org \
    --cc=Liam.Howlett@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=baohua@kernel.org \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=chris@chrisdown.name \
    --cc=david@kernel.org \
    --cc=dev.jain@arm.com \
    --cc=lance.yang@linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lorenzo.stoakes@oracle.com \
    --cc=npache@redhat.com \
    --cc=rppt@kernel.org \
    --cc=ryan.roberts@arm.com \
    --cc=surenb@google.com \
    --cc=willy@infradead.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox