Re: [PATCH] arm64: mm: Walk page tables with interrupts disabled in show_pte()

From: Karl Mehltretter

Date: Thu Aug 27 2026 - 23:45:37 EST


On Thu, Aug 27, 2026 at 03:30:24PM +0100, Will Deacon wrote:
> > @@ -151,6 +152,8 @@ static void show_pte(unsigned long addr)
> > return;
> > }
> >
> > + guard(irqsave)();
> > +
> > pr_alert("%s pgtable: %luk pages, %llu-bit VAs, pgdp=%016lx\n",
> > mm == &init_mm ? "swapper" : "user", PAGE_SIZE / SZ_1K,
> > vabits_actual, mm_to_pgd_phys(mm));
>
> Curious, but why did you add the guard before the print?

Good point. No need to cover the print, I'll move it below in v2.

Thanks,
Karl