mm-pagewalk-fix-bootstopping-regression-from-extra-pte_unmap.patch removed from -mm tree
The quilt patch titled
Subject: mm/pagewalk: fix bootstopping regression from extra pte_unmap()
has been removed from the -mm tree. Its filename was
mm-pagewalk-fix-bootstopping-regression-from-extra-pte_unmap.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Hugh Dickins <[email protected]>
Subject: mm/pagewalk: fix bootstopping regression from extra pte_unmap()
Date: Sat, 2 Sep 2023 08:29:30 -0700 (PDT)
Mikhail reports early-6.6-based Fedora Rawhide not booting: "rcu_preempt detected expedited stalls", minutes wait, and then hung_task splat while kworker trying to synchronize_rcu_expedited(). Nothing logged to disk.
He bisected to my 6.6 a349d72fd9ef ("mm/pgtable: add rcu_read_lock() and rcu_read_unlock()s"): but the one to blame is my 6.5 commit to fix the espfix "bad pmd" warnings when booting x86_64 with CONFIG_EFI_PGT_DUMP=y.
Gaah, that added an "addr >= TASK_SIZE" check to avoid pte_offset_map(), but failed to add the equivalent check when choosing to pte_unmap().
It's not a problem on 6.5 (for different reasons, it's harmless on both 64-bit and 32-bit), but becomes a bootstopper on 6.6 with the unbalanced rcu_read_unlock() - RCU has a WARN_ON_ONCE for that, but it would have scrolled off Mikhail's console too quickly.
---
mm/pagewalk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/pagewalk.c renamed from mm/pagewalk.c~mm-pagewalk-fix-bootstopping-regression-from-extra-pte_unmap +1 -1
@@ -58,7 +58,7 @@ static int walk_pte_range(pmd_t *pmd, un pte =pte_offset_map (pmd, addr);if (pte) { err =walk_pte_range_inner (pte, addr, end, walk); -if (walk->mm != &init_mm) +if (walk->mm != &init_mm && addr <TASK_SIZE )pte_unmap (pte); } }else {
_
Patches currently in -mm which might be from [email protected] are