Skip to contentSkip to conversation

linux-next: build failure after merge of the iomem-mmap-vs-gup tree

PATCH Stephen Rothwell 1 participant 1 message Feb 10, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the iomem-mmap-vs-gup tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

Caused by commit

96667f8a4382 ("mm: Close race in generic_access_phys")

interacting with commit

9fd6dad1261a ("mm: provide a saner PTE walking API for modules")

from the kvm tree.

I have applied the following merge fix patch for today.

From: Stephen Rothwell <[email protected]>
Date: Wed, 10 Feb 2021 20:29:22 +1100
Subject: [PATCH] mm: fixup for follow_pte() API change

---
 mm/memory.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/memory.c +2 -2
index b518bf4273d2..2c436e3a6259 100644
@@ -4825,7 +4825,7 @@ int generic_access_phys(struct vm_area_struct *vma, unsigned long addr,
 		return -EINVAL;
 
 retry:
-	if (follow_pte(vma->vm_mm, addr, NULL, &ptep, NULL, &ptl))
+	if (follow_pte(vma->vm_mm, addr, &ptep, &ptl))
 		return -EINVAL;
 	pte = *ptep;
 	pte_unmap_unlock(ptep, ptl);
@@ -4840,7 +4840,7 @@ int generic_access_phys(struct vm_area_struct *vma, unsigned long addr,
 	if (!maddr)
 		return -ENOMEM;
 
-	if (follow_pte(vma->vm_mm, addr, NULL, &ptep, NULL, &ptl))
+	if (follow_pte(vma->vm_mm, addr, &ptep, &ptl))
 		goto out_unmap;
 
 	if (!pte_same(pte, *ptep)) {
Signature · 5 lines
2.30.0

-- 
Cheers,
Stephen Rothwell