]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arm64: enable PTE type bit in the mask for pte_modify
authorFeng Kan <fkan@apm.com>
Tue, 24 Feb 2015 23:40:21 +0000 (15:40 -0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 26 Feb 2015 18:30:12 +0000 (18:30 +0000)
commit6910fa16dbe142f6a0fd0fd7c249f9883ff7fc8a
treeb58bb94c3ef9eb9ee54dc391eef9571abc1668d8
parent06ff87bae8d30ab9c949ae8729355323e18107b4
arm64: enable PTE type bit in the mask for pte_modify

Caught during Trinity testing. The pte_modify does not allow
modification for PTE type bit. This cause the test to hang
the system. It is found that the PTE can't transit from an
inaccessible page (b00) to a valid page (b11) because the mask
does not allow it. This happens when a big block of mmaped
memory is set the PROT_NONE, then the a small piece is broken
off and set to PROT_WRITE | PROT_READ cause a huge page split.

Signed-off-by: Feng Kan <fkan@apm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/pgtable.h