Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 310f1303 authored by David Daney's avatar David Daney Committed by Ralf Baechle
Browse files

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



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

Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
https://patchwork.linux-mips.org/patch/2318/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f850548e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)