From: Ma Wupeng mawupeng1@huawei.com
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I96IZH
--------------------------------
During arch_vm_get_page_prot, vm_page_prot is init based on vma flags, pte bit not vm_prot should be used here. Fix this problem by replacing vm_prot with pte bit.
Fixes: 5c5063ac8584 ("arm64: mm: Introduce VM_PBHA_BIT0 to enable pbha bit0 for single vma") Signed-off-by: Ma Wupeng mawupeng1@huawei.com --- arch/arm64/include/asm/mman.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/include/asm/mman.h b/arch/arm64/include/asm/mman.h index 3c96193953e9..40317da36ced 100644 --- a/arch/arm64/include/asm/mman.h +++ b/arch/arm64/include/asm/mman.h @@ -60,7 +60,7 @@ static inline pgprot_t arch_vm_get_page_prot(unsigned long vm_flags) prot |= PTE_ATTRINDX(MT_NORMAL_TAGGED);
if (vm_flags & VM_PBHA_BIT0) - prot |= PROT_PBHA_BIT0; /* select PBHA BIT 0 for pbha */ + prot |= PTE_PBHA0;
return __pgprot(prot); }