Skip to contentSkip to conversation

mm-re-allow-pinning-of-zero-pfns.patch removed from -mm tree

merged mm-hotfixes-stable Andrew Morton 1 participant 1 message Jun 17, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: re-allow pinning of zero pfns
has been removed from the -mm tree. Its filename was
mm-re-allow-pinning-of-zero-pfns.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: Alex Williamson <[email protected]>
Subject: mm: re-allow pinning of zero pfns
Date: Fri, 10 Jun 2022 16:35:13 -0600

The commit referenced below subtly and inadvertently changed the logic to disallow pinning of zero pfns. This breaks device assignment with vfio and potentially various other users of gup. Exclude the zero page test from the negation.

Fixes 1c563432588d ("mm: fix is_pinnable_page against a cma page")
Cc Paul E. McKenney <[email protected]>
Cc John Hubbard <[email protected]>
Cc John Dias <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Zhangfei Gao <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Joao Martins <[email protected]>
Cc Yi Liu <[email protected]>

---

 include/linux/mm.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mm.h renamed from include/linux/mm.h~mm-re-allow-pinning-of-zero-pfns +1 -1
@@ -1600,7 +1600,7 @@ static inline bool is_pinnable_page(stru
 	if (mt == MIGRATE_CMA || mt == MIGRATE_ISOLATE)
 		return false;
 #endif
-	return !(is_zone_movable_page(page) || is_zero_pfn(page_to_pfn(page)));
+	return !is_zone_movable_page(page) || is_zero_pfn(page_to_pfn(page));
 }
 #else
 static inline bool is_pinnable_page(struct page *page)

_

Patches currently in -mm which might be from [email protected] are