[PATCH 5/7] mm/x86: Make pud_leaf() only cares about PSE bit

Dave Hansen dave.hansen at intel.com
Sat Jun 22 00:32:09 AEST 2024


On 6/21/24 07:25, Peter Xu wrote:
> An entry should be reported as PUD leaf even if it's PROT_NONE, in which
> case PRESENT bit isn't there. I hit bad pud without this when testing dax
> 1G on zapping a PROT_NONE PUD.

Yeah, looks like pmd_leaf() got fixed up because of its involvement in
THP, but PUDs got missed.  This patch also realigns pmd_leaf() and
pud_leaf() behavior, which is important.

Acked-by: Dave Hansen <dave.hansen at linux.intel.com>



More information about the Linuxppc-dev mailing list