Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Invalidate old TLB mappings when updating huge page PTEs.

Without this, stale Icache or TLB entries may be used.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
https://patchwork.linux-mips.org/patch/2318/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

David Daney and committed by
Ralf Baechle
310f1303 f850548e

+1
+1
arch/mips/include/asm/hugetlb.h
··· 70 70 static inline void huge_ptep_clear_flush(struct vm_area_struct *vma, 71 71 unsigned long addr, pte_t *ptep) 72 72 { 73 + flush_tlb_mm(vma->vm_mm); 73 74 } 74 75 75 76 static inline int huge_pte_none(pte_t pte)