Patch "sparc64: Fix page table walk for PUD hugepages" has been added to the 4.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
sparc64: Fix page table walk for PUD hugepages
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
0001-sparc64-Fix-page-table-walk-for-PUD-hugepages.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
fac33aa62841b69cd0e19a29b0e2ac96e4e8cf32Mon Sep 17 00:00:00 2001
From: Nitin Gupta <[email protected]>
Date: Fri, 3 Nov 2017 12:26:06 -0700
Subject: sparc64: Fix page table walk for PUD hugepages
From: Nitin Gupta <[email protected]>
[ Upstream commit 70f3c8b7c2e7ebcdde8354da004872e7c9184e97 ]
For a PUD hugepage entry, we need to propagate bits [32:22] from virtual address to resolve at 4M granularity. However, the current code was incorrectly propagating bits [29:19]. This bug can cause incorrect data to be returned for pages backed with 16G hugepages.
--- arch/sparc/include/asm/tsb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sparc/include/asm/tsb.h +1 -1
@@ -217,7 +217,7 @@ extern struct tsb_phys_patch_entry __tsb_phys_patch, __tsb_phys_patch_end; sllx REG2, 32, REG2; \ andcc REG1, REG2, %g0; \ be,pt %xcc,700f ; \ - sethi %hi (0x1ffc0000 ),REG2 ; \ + sethi %hi (0xffe00000 ),REG2 ; \ sllx REG2, 1, REG2; \ brgez,pn REG1, FAIL_LABEL; \andn REG1 ,REG2 ,REG1 ; \
Signature · 7 lines
2.13.6 Patches currently in stable-queue which might be from [email protected] are queue-4.14/0001-sparc64-Fix-page-table-walk-for-PUD-hugepages.patch