The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/2] mm/huge_memory: drop dead split helper variants
@ 2026-07-16 10:03 Kiryl Shutsemau
  2026-07-16 10:03 ` [PATCH 1/2] mm/huge_memory: remove unused can_split_folio() Kiryl Shutsemau
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Kiryl Shutsemau @ 2026-07-16 10:03 UTC (permalink / raw)
  To: Andrew Morton, David Hildenbrand, Lorenzo Stoakes
  Cc: Zi Yan, Baolin Wang, Liam R . Howlett, Nico Pache, Ryan Roberts,
	Dev Jain, Barry Song, Lance Yang, Usama Arif, linux-mm,
	linux-kernel, Kiryl Shutsemau (Meta)

From: "Kiryl Shutsemau (Meta)" <kas@kernel.org>

Two trivial cleanups in the folio split API, found while auditing the
split helpers for the inode UAF fix [1]:

 - can_split_folio() is dead: only the !THP stub remains, no definition
   under CONFIG_TRANSPARENT_HUGEPAGE and no callers. Leftover from an
   earlier cleanup.

 - split_folio_to_list_to_order() has no direct callers; its only user
   is split_folio_to_order(), which always passes a NULL list. Fold it.

These were 4/5 and 5/5 of the withdrawn series [2], rebased without the
memory_failure() dependency. 3/5 (removing split_huge_page_to_order())
is dropped: with the UAF fixed by [1] instead, memory_failure() keeps
using it. The syzbot ci failures against [2] were all caused by its
patch 1, which is gone.

No functional change.

[1] https://lore.kernel.org/linux-mm/aldjhtfVByHDQXe6@thinkstation
[2] https://lore.kernel.org/linux-mm/20260714122344.351895-1-kirill@shutemov.name

Kiryl Shutsemau (Meta) (2):
  mm/huge_memory: remove unused can_split_folio()
  mm/huge_memory: fold split_folio_to_list_to_order() into
    split_folio_to_order()

 include/linux/huge_mm.h | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)


base-commit: 0e35b9b6ec0ffcc5e23cbdec09f5c622ad532b53
-- 
2.54.0


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

end of thread, other threads:[~2026-07-16 14:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-16 10:03 [PATCH 0/2] mm/huge_memory: drop dead split helper variants Kiryl Shutsemau
2026-07-16 10:03 ` [PATCH 1/2] mm/huge_memory: remove unused can_split_folio() Kiryl Shutsemau
2026-07-16 11:08   ` Usama Arif
2026-07-16 13:51   ` Lorenzo Stoakes (ARM)
2026-07-16 14:57   ` Zi Yan
2026-07-16 10:03 ` [PATCH 2/2] mm/huge_memory: fold split_folio_to_list_to_order() into split_folio_to_order() Kiryl Shutsemau
2026-07-16 11:09   ` Usama Arif
2026-07-16 13:52   ` Lorenzo Stoakes (ARM)
2026-07-16 14:58   ` Zi Yan
2026-07-16 11:11 ` [PATCH 0/2] mm/huge_memory: drop dead split helper variants 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