Re: [PATCH v3 3/3] x86/mm: add TLB purge to free pmd/pte page interfaces

From: Joerg Roedel
Date: Tue May 29 2018 - 11:08:23 EST


On Wed, May 16, 2018 at 05:32:07PM -0600, Toshi Kani wrote:
> pmd = (pmd_t *)pud_page_vaddr(*pud);
> + pmd_sv = (pmd_t *)__get_free_page(GFP_KERNEL);
> + if (!pmd_sv)
> + return 0;

So your code still needs to allocate a full page where a simple
list_head on the stack would do the same job.

Ingo, Thomas, can you please just revert the original broken patch for
now until there is proper fix?

Thanks,

Joerg