Re: [PATCH v3] mm: pagewalk: Fix walk for hugepage tables

2021-06-27 Thread Christophe Leroy
Le 28/06/2021 à 08:03, Aneesh Kumar K.V a écrit : Christophe Leroy writes: Pagewalk ignores hugepd entries and walk down the tables as if it was traditionnal entries, leading to crazy result. But we do handle hugetlb separately if (vma && is_vm_hugetlb_page(vma)) {

Re: [PATCH v3] mm: pagewalk: Fix walk for hugepage tables

2021-06-27 Thread Aneesh Kumar K.V
Christophe Leroy writes: > Pagewalk ignores hugepd entries and walk down the tables > as if it was traditionnal entries, leading to crazy result. But we do handle hugetlb separately if (vma && is_vm_hugetlb_page(vma)) { if (ops->hugetlb_entry) err

Re: [PATCH v3] mm: pagewalk: Fix walk for hugepage tables

2021-06-27 Thread Christophe Leroy
Le 28/06/2021 à 03:12, Andrew Morton a écrit : On Fri, 25 Jun 2021 05:10:12 + (UTC) Christophe Leroy wrote: Pagewalk ignores hugepd entries and walk down the tables as if it was traditionnal entries, leading to crazy result. Add walk_hugepd_range() and use it to walk hugepage tables.

Re: [PATCH v3] mm: pagewalk: Fix walk for hugepage tables

2021-06-27 Thread Andrew Morton
On Fri, 25 Jun 2021 05:10:12 + (UTC) Christophe Leroy wrote: > Pagewalk ignores hugepd entries and walk down the tables > as if it was traditionnal entries, leading to crazy result. > > Add walk_hugepd_range() and use it to walk hugepage tables. More details, please? I assume "crazy resul

[PATCH v3] mm: pagewalk: Fix walk for hugepage tables

2021-06-24 Thread Christophe Leroy
Pagewalk ignores hugepd entries and walk down the tables as if it was traditionnal entries, leading to crazy result. Add walk_hugepd_range() and use it to walk hugepage tables. Signed-off-by: Christophe Leroy Reviewed-by: Steven Price --- v3: - Rebased on next-20210624 (no change since v2) - Ad