mm-huge_memory-update-file-pud-counter-before-folio_put.patch removed from -mm tree
The quilt patch titled
Subject: mm/huge_memory: update file PUD counter before folio_put()
has been removed from the -mm tree. Its filename was
mm-huge_memory-update-file-pud-counter-before-folio_put.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Yin Tirui <[email protected]>
Subject: mm/huge_memory: update file PUD counter before folio_put()
Date: Tue, 26 May 2026 18:13:55 +0800
__split_huge_pud_locked() updates the file/shmem RSS counter after dropping the PUD mapping's folio reference. If folio_put() drops the last reference, mm_counter_file() can later read freed folio state via folio_test_swapbacked().
Move the counter update before folio_put().
---
mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-huge_memory-update-file-pud-counter-before-folio_put +1 -1
@@ -3015,9 +3015,9 @@ static void __split_huge_pud_locked(struif (!folio_test_referenced (folio) &&pud_young (old_pud))folio_set_referenced (folio);folio_remove_rmap_pud (folio, page, vma); -folio_put (folio);add_mm_counter (vma->vm_mm,mm_counter_file (folio), -HPAGE_PUD_NR ); +folio_put (folio); } void __split_huge_pud(struct vm_area_struct *vma, pud_t *pud,
_
Patches currently in -mm which might be from [email protected] are