mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 00/15] mm/hugetlb: various fixes
@ 2026-11-16 18:29 David Hildenbrand (Arm)
  2026-11-16 18:29 ` [PATCH v2 01/15] hugetlbfs: fix integer overflow in fallocate() David Hildenbrand (Arm)
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: David Hildenbrand (Arm) @ 2026-11-16 18:29 UTC (permalink / raw)
  To: Muchun Song, Oscar Salvador, Naoya Horiguchi, Andrew Morton,
	Mel Gorman, Andy Whitcroft, Miaohe Lin, Michal Hocko,
	Rik van Riel, Hugh Dickins, Baolin Wang, Vivek Kasireddy,
	Dave Airlie, Jason Gunthorpe, Lorenzo Stoakes, Liam R. Howlett,
	Vlastimil Babka, Mike Rapoport, Suren Baghdasaryan,
	Jonathan Corbet, Shuah Khan, Randy Dunlap, Peter Xu,
	Breno Leitao, Will Deacon, Aneesh Kumar K.V, Nick Piggin,
	Peter Zijlstra, Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger, Sven Schnelle, Arnd Bergmann
  Cc: linux-mm, linux-kernel, Gerd Hoffmann, linux-doc, linux-arch,
	linux-s390, David Hildenbrand (Arm),
	luojiajun, Josef Bacik, stable, Ackerley Tng,
	Gregory Price (Meta),
	Chris Mason, Daehyeon Ko

Hi,

v2 of the hugetlb fixes. There will be more at some point ... let's
drag these over the finishing line.

Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
---
Changes in v2:
- Rebased on top of akpm/mm-stable
- Applied tags
- "mm/hugetlb: compare against persistent count when freeing lowmem folios"
  and "mm/hugetlb: account temporary folios separately"
 - Use const struct hstate pointers
- "mm/hugetlb: fix reservation leak on min_size= mounts"
 - Clarify that this is only an accounting error in the description
- "mm/hugetlb: account restored reservations before freeing folios"
 - Drop RFC
 - Don't allocate surplus pages for restored reservations
 - Free unused surplus pages directly instead of via free_huge_folio()
 - Document available_huge_pages() and assert that hugetlb_lock is held
- "mm/hugetlb: delay anon folio rmap removal until after the TLB flush"
 - Drop RFC
 - Flush delayed rmaps in hugetlb_unmap_range() (due to rebasing)
 - Move hugetlb_folio_restore_rsv_on_unmap() declaration to mm/internal.h
- Link to v1: https://patch.msgid.link/20261028-fixes_hugetlb-v1-0-a0a033db180f@kernel.org

---
Chris Mason (3):
      hugetlbfs: do not grow a sealed file in mmap()
      mm/hugetlb: keep surplus folios that are reserved
      mm/hugetlb: fix reservation leak on min_size= mounts

David Hildenbrand (Arm) (10):
      hugetlbfs: fix integer overflow in fallocate()
      mm/hugetlb: compare against persistent count when freeing lowmem folios
      mm/hugetlb: preserve reservations when shrinking on HIGHMEM
      mm/hugetlb: account temporary folios separately
      mm/hugetlb: fix mremap() racing with page migration
      mm/hugetlb: serialize page-cache allocations with truncation
      mm/memfd: recheck the page cache before allocating a hugetlb folio
      mm/hugetlb: count again if the reserve map shrank
      mm/hugetlb: account restored reservations before freeing folios
      mm/hugetlb: delay anon folio rmap removal until after the TLB flush

Josef Bacik (2):
      mm/hugetlb: keep surplus folios when the pool shrinks
      hugetlbfs: fix unmapping folios from private VMAs

 Documentation/mm/hugetlbfs_reserv.rst |  30 +--
 arch/s390/include/asm/tlb.h           |   5 +-
 fs/hugetlbfs/inode.c                  |  36 ++-
 include/asm-generic/tlb.h             |   5 +-
 include/linux/hugetlb.h               |  17 ++
 mm/hugetlb.c                          | 424 ++++++++++++++++++++++------------
 mm/hugetlb_internal.h                 |  24 ++
 mm/hugetlb_sysfs.c                    |   2 +-
 mm/internal.h                         |   9 +
 mm/memfd.c                            |  17 ++
 mm/mmu_gather.c                       |  16 +-
 11 files changed, 404 insertions(+), 181 deletions(-)
---
base-commit: fa4ad798f6f681031775266044ba1b0cf3c670bd
change-id: 20261027-fixes_hugetlb-2c4f02ff6304

Best regards,
--  
David Hildenbrand (Arm) <david@kernel.org>


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

end of thread, other threads:[~2026-11-16 18:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-16 18:29 [PATCH v2 00/15] mm/hugetlb: various fixes David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 01/15] hugetlbfs: fix integer overflow in fallocate() David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 02/15] mm/hugetlb: compare against persistent count when freeing lowmem folios David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 03/15] mm/hugetlb: preserve reservations when shrinking on HIGHMEM David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 04/15] mm/hugetlb: account temporary folios separately David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 05/15] mm/hugetlb: keep surplus folios when the pool shrinks David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 06/15] mm/hugetlb: fix mremap() racing with page migration David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 07/15] hugetlbfs: fix unmapping folios from private VMAs David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 08/15] mm/hugetlb: serialize page-cache allocations with truncation David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 09/15] mm/memfd: recheck the page cache before allocating a hugetlb folio David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 10/15] mm/hugetlb: count again if the reserve map shrank David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 11/15] hugetlbfs: do not grow a sealed file in mmap() David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 12/15] mm/hugetlb: keep surplus folios that are reserved David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 13/15] mm/hugetlb: fix reservation leak on min_size= mounts David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 14/15] mm/hugetlb: account restored reservations before freeing folios David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 15/15] mm/hugetlb: delay anon folio rmap removal until after the TLB flush David Hildenbrand (Arm)

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®