Re: [PATCH v10 4/5] arm64: ptdump: Don't override the level when operating on the stage-2 tables

From: Will Deacon
Date: Tue Sep 10 2024 - 06:10:17 EST


On Mon, Sep 09, 2024 at 12:47:20PM +0000, Sebastian Ene wrote:
> Ptdump uses the init_mm structure directly to dump the kernel
> pagetables. When ptdump is called on the stage-2 pagetables, this mm
> argument is not used. Prevent the level from being overwritten by
> checking the argument against NULL.
>
> Signed-off-by: Sebastian Ene <sebastianene@xxxxxxxxxx>
> ---
> arch/arm64/mm/ptdump.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

Acked-by: Will Deacon <will@xxxxxxxxxx>

Will