Re: [PATCH v6 3/7] x86/mm: Use 'ptdesc' when freeing PMD pages

From: Baolu Lu

Date: Wed Oct 15 2025 - 01:23:31 EST


On 10/15/25 07:19, Dave Hansen wrote:
On 10/14/25 06:04, Lu Baolu wrote:
-#if defined(CONFIG_SPLIT_PMD_PTLOCKS)
-
+#if defined(CONFIG_SPLIT_PMD_PTLOCKS) || defined(CONFIG_X86_64)

What's with the #ifdef munging? It's not mentioned in the changelog.

I went looking at this because pmd_free_pte_page() is right in the
middle of the action on this reported use after free:

https://lore.kernel.org/all/68eeb99e.050a0220.91a22.0220.GAE@xxxxxxxxxx/

so something fishy is going on. It would be great to narrow that report
down to a _specific_ patch in the series.

Yes. I am trying to reproduce the issue on my local machine and then
narrow down the reported issue.

Thanks,
baolu