10000 Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upst… · bsd-unix/linux@617a8d6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 617a8d6

Browse files
committed
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS fix from Ralf Baechle: "Another week with just a single 4.7 fix. This fixes a possible 'loss' of the huge page bit from pmd on permission change" * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: MIPS: Fix page table corruption on THP permission changes.
2 parents ee40fb2 + 88d02a2 commit 617a8d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/include/asm/pgtable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ static inline struct page *pmd_page(pmd_t pmd)
633633

634634
static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot)
635635
{
636-
pmd_val(pmd) = (pmd_val(pmd) & _PAGE_CHG_MASK) |
636+
pmd_val(pmd) = (pmd_val(pmd) & (_PAGE_CHG_MASK | _PAGE_HUGE)) |
637637
(pgprot_val(newprot) & ~_PAGE_CHG_MASK);
638638
return pmd;
639639
}

0 commit comments

Comments
 (0)
0