Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] mm: gup: handle fault retries in __mm_populate()
@ 2026-12-03 15:17 Yeoreum Yun
  2026-12-03 15:17 ` [PATCH 1/3] " Yeoreum Yun
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Yeoreum Yun @ 2026-12-03 15:17 UTC (permalink / raw)
  To: Jason Gunthorpe, John Hubbard, Peter Xu, linux-mm, Jan Kara,
	Josef Bacik, Johannes Weiner, Lorenzo Stoakes, Liam R. Howlett,
	Vlastimil Babka, Mike Rapoport, Suren Baghdasaryan, Michal Hocko,
	Jann Horn, Pedro Falcato
  Cc: David Hildenbrand, Andrew Morton, Harrison Crosse, Yeoreum Yun

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

 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



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-12-04 19:58 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox