Re: [PATCH v6 3/7] x86/mm: Use 'ptdesc' when freeing PMD pages
From: Dave Hansen
Date: Tue Oct 14 2025 - 19:20:18 EST
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.