Thread (14 messages) 14 messages, 6 authors, 2022-11-21
STALE1312d
Revisions (2)
  1. v1 current
  2. v2 [diff vs current]

[PATCH 0/2] arm64: fix two bug about page table check

From: Liu Shixin <hidden>
Date: 2022-11-16 07:51:06
Also in: lkml

Denys Vlasenko has reported two bug about page table check on arm64.       
On arm64, pmd_present() contains non-leaf pmd and invalid pmd too.         

When collapse hugepage, the pmd is non-leaf and should skip the check.
Use pmd_leaf() instead of pmd_present().
                                                                           
When split hugepage, the pmd will be marked as invalid and then populate.  
So we should decrease file_map_count when invalid pmd and then increase    
when populate the pmd.                                                     
                                                                           
Liu Shixin (2):
  arm64/mm: fix incorrect file_map_count for non-leaf pmd/pud
  arm64/mm: fix incorrect file_map_count for invalid pmd/pud

 arch/arm64/include/asm/pgtable.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help