]> Git Repo - J-linux.git/commit
riscv: tlb: fix __p*d_free_tlb()
authorJisheng Zhang <[email protected]>
Tue, 19 Dec 2023 17:50:43 +0000 (01:50 +0800)
committerPalmer Dabbelt <[email protected]>
Wed, 24 Jan 2024 23:55:53 +0000 (15:55 -0800)
commit8246601a7d391ce8207408149d65732f28af81a1
treea08496c95014aa0faea47d149bf63e047e550b59
parentb85ea95d086471afb4ad062012a4d73cd328fa86
riscv: tlb: fix __p*d_free_tlb()

If non-leaf PTEs I.E pmd, pud or p4d is modified, a sfence.vma is
a must for safe, imagine if an implementation caches the non-leaf
translation in TLB, although I didn't meet this HW so far, but it's
possible in theory.

Signed-off-by: Jisheng Zhang <[email protected]>
Fixes: c5e9b2c2ae82 ("riscv: Improve tlb_flush()")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
arch/riscv/include/asm/pgalloc.h
This page took 0.042263 seconds and 4 git commands to generate.