mm-memory-return-enomem-for-page-table-allocation-failure-in-insert_pages.patch removed from -mm tree
The quilt patch titled
Subject: mm/memory: return -ENOMEM for page-table allocation failure in insert_pages()
has been removed from the -mm tree. Its filename was
mm-memory-return-enomem-for-page-table-allocation-failure-in-insert_pages.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Avi Weiss <[email protected]>
Subject: mm/memory: return -ENOMEM for page-table allocation failure in insert_pages()
Date: Sat, 29 Aug 2026 20:11:13 +0300
walk_to_pmd() returns NULL only when p4d_alloc(), pud_alloc(), or pmd_alloc() fails. These are page-table allocation failures, but insert_pages() currently reports them as -EFAULT.
Return -ENOMEM instead, consistent with the subsequent pte_alloc() failure and with the single-page insert_page() path, which reports failure of the same page-table allocation chain as -ENOMEM.
Address and range validation failures in vm_insert_pages() continue to return -EFAULT. Keep the later -EFAULT return for pte_offset_map_lock(), which is not an allocation failure.
---
mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memory.c renamed from mm/memory.c~mm-memory-return-enomem-for-page-table-allocation-failure-in-insert_pages +1 -1
@@ -2569,7 +2569,7 @@ static int insert_pages(struct vm_area_s more: pmd =walk_to_pmd (mm, addr);if (!pmd) { - err = -EFAULT ; + err = -ENOMEM ; goto out; }
_
Patches currently in -mm which might be from [email protected] are