Re: [PATCH v5] arm64: Enable vmalloc-huge with ptdump

From: Dev Jain
Date: Wed Jul 23 2025 - 10:41:16 EST



On 23/07/25 3:59 pm, Dev Jain wrote:
[--- snip ---]

void ptdump_walk(struct seq_file *s, struct ptdump_info *info)
{
unsigned long end = ~0UL;
@@ -311,7 +319,7 @@ void ptdump_walk(struct seq_file *s, struct ptdump_info *info)
}
};
- ptdump_walk_pgd(&st.ptdump, info->mm, NULL);
+ arm64_ptdump_walk_pgd(&st.ptdump, info->mm, NULL);
}
static void __init ptdump_initialize(void)
@@ -353,7 +361,7 @@ bool ptdump_check_wx(void)
}
};
- ptdump_walk_pgd(&st.ptdump, &init_mm, NULL);
+ arm64_ptdump_walk_pgd(&st.ptdump, info->mm, NULL);

Brilliant, due to copy-paste I passed in info->mm here instead of init_mm.
Let me resend.

if (st.wx_pages || st.uxn_pages) {
pr_warn("Checked W+X mappings: FAILED, %lu W+X pages found, %lu non-UXN pages found\n",