From: David Daney Date: Wed, 27 Apr 2011 23:39:28 +0000 (-0700) Subject: MIPS: Invalidate old TLB mappings when updating huge page PTEs. X-Git-Tag: v2.6.39~63^2~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=310f1303390758ee7688e350e117a7b50ba5fa05;p=~shefty%2Frdma-dev.git 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 To: linux-mips@linux-mips.org https://patchwork.linux-mips.org/patch/2318/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/hugetlb.h b/arch/mips/include/asm/hugetlb.h index f5e85601532..c565b7c3f0b 100644 --- a/arch/mips/include/asm/hugetlb.h +++ b/arch/mips/include/asm/hugetlb.h @@ -70,6 +70,7 @@ static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, static inline void huge_ptep_clear_flush(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep) { + flush_tlb_mm(vma->vm_mm); } static inline int huge_pte_none(pte_t pte)