[PATCH] powerpc/mm: Fix infinite loop in hash fault with 4K page size

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE3897d

3 messages, 3 authors, 2015-12-14 · open the first message on its own page

[PATCH] powerpc/mm: Fix infinite loop in hash fault with 4K page size

From: Aneesh Kumar K.V <hidden>
Date: 2015-11-28 17:09:51

This is the same bug we fixed as part of 09567e7fd44291bfc08accfdd67ad8f467842332
("powerpc/mm: Check paca psize is up to date for huge mappings"). Please
check that for details. The difference here is that faults were
happening on a 4K page at an address previously mapped by hugetlb.

Signed-off-by: Aneesh Kumar K.V <redacted>
---
 arch/powerpc/mm/hash_utils_64.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c
index 3d261bc6fef8..4233dcccbaf7 100644
--- a/arch/powerpc/mm/hash_utils_64.c
+++ b/arch/powerpc/mm/hash_utils_64.c
@@ -1124,9 +1124,10 @@ int hash_page_mm(struct mm_struct *mm, unsigned long ea,
 		}
 	}
 
+#endif /* CONFIG_PPC_64K_PAGES */
+
 	if (current->mm == mm)
 		check_paca_psize(ea, mm, psize, user_region);
-#endif /* CONFIG_PPC_64K_PAGES */
 
 #ifdef CONFIG_PPC_64K_PAGES
 	if (psize == MMU_PAGE_64K)
-- 
2.5.0

Re: [PATCH] powerpc/mm: Fix infinite loop in hash fault with 4K page size

From: Anshuman Khandual <hidden>
Date: 2015-12-01 06:50:55

On 11/28/2015 10:39 PM, Aneesh Kumar K.V wrote:
This is the same bug we fixed as part of 09567e7fd44291bfc08accfdd67ad8f467842332
("powerpc/mm: Check paca psize is up to date for huge mappings"). Please
check that for details. The difference here is that faults were
happening on a 4K page at an address previously mapped by hugetlb.

Signed-off-by: Aneesh Kumar K.V <redacted>
Reviewed-by: Anshuman Khandual <redacted>

Re: powerpc/mm: Fix infinite loop in hash fault with 4K page size

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2015-12-14 10:46:11

On Sat, 2015-28-11 at 17:09:33 UTC, "Aneesh Kumar K.V" wrote:
This is the same bug we fixed as part of 09567e7fd44291bfc08accfdd67ad8f467842332
("powerpc/mm: Check paca psize is up to date for huge mappings"). Please
check that for details. The difference here is that faults were
happening on a 4K page at an address previously mapped by hugetlb.

Signed-off-by: Aneesh Kumar K.V <redacted>
Reviewed-by: Anshuman Khandual <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/0863d7f2136550a281f40f4d

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help