]> git.baikalelectronics.ru Git - kernel.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)
commit5b2342fbbcb8b3a2ed9796c85430430c4d4034a0
treeb58bb94c3ef9eb9ee54dc391eef9571abc1668d8
parent88472ea6447e31dc72bd321645b2694b4b429a88
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