From: Yeoreum Yun <yeoreum.yun@arm.com>
To: "Liam R. Howlett" <liam@infradead.org>
Cc: Yeoreum Yun <yeoreum.yun@arm.com>, Jason Gunthorpe <jgg@ziepe.ca>,
John Hubbard <jhubbard@nvidia.com>, Peter Xu <peterx@redhat.com>,
linux-mm@kvack.org, Jan Kara <jack@suse.cz>,
Josef Bacik <josef@toxicpanda.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Lorenzo Stoakes <ljs@kernel.org>,
Vlastimil Babka <vbabka@kernel.org>,
Mike Rapoport <rppt@kernel.org>,
Suren Baghdasaryan <surenb@google.com>,
Michal Hocko <mhocko@suse.com>, Jann Horn <jannh@google.com>,
Pedro Falcato <pfalcato@suse.de>,
David Hildenbrand <david@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Harrison Crosse <harrison@crosse.dev>
Subject: Re: [PATCH 0/3] mm: gup: handle fault retries in __mm_populate()
Date: Fri, 4 Dec 2026 19:58:44 +0000 [thread overview]
Message-ID: <axMbdDQN1_E2JmIf@e129823.arm.com> (raw)
In-Reply-To: <dufbvjoaistiovzwoghsbw3yoxg4wlwmjqrlhdnpwqottib65l@nhqbnaurvgue>
On Thu, Dec 03, 2026 at 10:23:50PM -0500, Liam R. Howlett wrote:
> On 26/12/03 03:17PM, Yeoreum Yun wrote:
> > When populating a file mapping whose reads repeatedly fail,
> > __mm_populate() can retry the same page indefinitely [1].
> >
> > On the first fault, filemap_fault() may drop mmap_lock before reading
> > the page and return VM_FAULT_RETRY without reporting the read error.
> > __get_user_pages() then returns the number of pages processed, which
> > may be zero. However, __mm_populate() retries the faulting page without
> > FOLL_TRIED, allowing this sequence to repeat indefinitely.
> >
> > This patch series addresses this problem including small cleanup and
> > based on mm-core/for-next
> >
> > To: Jason Gunthorpe <jgg@ziepe.ca>
> > To: John Hubbard <jhubbard@nvidia.com>
> > To: Peter Xu <peterx@redhat.com>
> > To: linux-mm@kvack.org
> > To: Jan Kara <jack@suse.cz>
> > To: Josef Bacik <josef@toxicpanda.com>
> > To: Johannes Weiner <hannes@cmpxchg.org>
> > To: Lorenzo Stoakes <ljs@kernel.org>
> > To: Liam R. Howlett <liam@infradead.org>
> > To: Vlastimil Babka <vbabka@kernel.org>
> > To: Mike Rapoport <rppt@kernel.org>
> > To: Suren Baghdasaryan <surenb@google.com>
> > To: Michal Hocko <mhocko@suse.com>
> > To: Jann Horn <jannh@google.com>
> > To: Pedro Falcato <pfalcato@suse.de>
> > Cc: David Hildenbrand <david@kernel.org>
> > Cc: Andrew Morton <akpm@linux-foundation.org>
> > Cc: Harrison Crosse <harrison@crosse.dev>
> >
> > Link: [1] https://lore.kernel.org/all/20261118-mmpop-populate-v1-1-9c561d178d11@crosse.dev/
> > ---
> > Yeoreum Yun (3):
> > mm: gup: handle fault retries in __mm_populate()
> > mm: gup: remove unused argument in populate_vma_page_range()
> > mm: gup: make mmap_lock acquisition in __mm_populate() killable
>
> What about the test from the previous patches?
Ah. I forgot it, I'll include it as-is in next spin.
>
> >
> > mm/gup.c | 30 ++++++++++++++++++++++++------
> > mm/internal.h | 2 +-
> > mm/mmap.c | 4 ++--
> > mm/mprotect.c | 2 +-
> > 4 files changed, 28 insertions(+), 10 deletions(-)
> > ---
> > base-commit: c03465593e556e594b4efb1f6cb26565f11dc8b8
> > change-id: 20261201-infinite_mm_populate-6d659390695d
> >
> > Best regards,
> > --
> > Sincerely,
> > Yeoreum Yun
> >
>
--
Sincerely,
Yeoreum Yun
prev parent reply other threads:[~2026-12-04 19:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 15:17 [PATCH 0/3] mm: gup: handle fault retries in __mm_populate() Yeoreum Yun
2026-12-03 15:17 ` [PATCH 1/3] " Yeoreum Yun
2026-12-04 3:23 ` Liam R. Howlett
2026-12-04 8:30 ` Yeoreum Yun
2026-12-04 5:29 ` kernel test robot
2026-12-04 15:17 ` sashiko-bot
2026-12-03 15:17 ` [PATCH 2/3] mm: gup: remove unused argument in populate_vma_page_range() Yeoreum Yun
2026-12-04 3:28 ` Liam R. Howlett
2026-12-04 8:41 ` Yeoreum Yun
2026-12-04 15:17 ` sashiko-bot
2026-12-03 15:17 ` [PATCH 3/3] mm: gup: make mmap_lock acquisition in __mm_populate() killable Yeoreum Yun
2026-12-04 3:35 ` Liam R. Howlett
2026-12-04 8:38 ` Yeoreum Yun
2026-12-04 3:23 ` [PATCH 0/3] mm: gup: handle fault retries in __mm_populate() Liam R. Howlett
2026-12-04 19:58 ` Yeoreum Yun [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=axMbdDQN1_E2JmIf@e129823.arm.com \
--to=yeoreum.yun@arm.com \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=hannes@cmpxchg.org \
--cc=harrison@crosse.dev \
--cc=jack@suse.cz \
--cc=jannh@google.com \
--cc=jgg@ziepe.ca \
--cc=jhubbard@nvidia.com \
--cc=josef@toxicpanda.com \
--cc=liam@infradead.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=mhocko@suse.com \
--cc=peterx@redhat.com \
--cc=pfalcato@suse.de \
--cc=rppt@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