mm-gup-check-p4d-presence-before-going-on.patch removed from -mm tree
The quilt patch titled
Subject: mm/gup: check p4d presence before going on
has been removed from the -mm tree. Its filename was
mm-gup-check-p4d-presence-before-going-on.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: Peter Xu <[email protected]>
Subject: mm/gup: check p4d presence before going on
Date: Mon, 18 Mar 2024 16:03:53 -0400
Currently there should have no p4d swap entries so it may not matter much, however this may help us to rule out swap entries in pXd_huge() API, which will include p4d_huge(). The p4d_present() checks make it 100% clear that we won't rely on p4d_huge() for swap entries.
---
mm/gup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/gup.c renamed from mm/gup.c~mm-gup-check-p4d-presence-before-going-on +2 -2
@@ -776,7 +776,7 @@ static struct page *follow_p4d_mask(stru p4dp =p4d_offset (pgdp, address); p4d =READ_ONCE (*p4dp); -if (p4d_none (p4d)) +if (!p4d_present (p4d))return no_page_table (vma, flags);BUILD_BUG_ON (p4d_huge (p4d));if (unlikely (p4d_bad (p4d)))
@@ -3081,7 +3081,7 @@ static int gup_p4d_range(pgd_t *pgdp, pgp4d_t p4d =READ_ONCE (*p4dp); next =p4d_addr_end (addr, end); -if (p4d_none (p4d)) +if (!p4d_present (p4d))return 0 ;BUILD_BUG_ON (p4d_huge (p4d));if (unlikely (is_hugepd (__hugepd (p4d_val (p4d))))) {
_
Patches currently in -mm which might be from [email protected] are
mm-userfaultfd-reset-ptes-when-close-for-wr-protected-ones.patch mm-hugetlb-assert-hugetlb_lock-in-__hugetlb_cgroup_commit_charge.patch mm-page_table_check-support-userfault-wr-protect-entries.patch