diff options
author | 2023-04-28 14:01:19 +0200 | |
---|---|---|
committer | 2023-06-01 18:15:20 -0700 | |
commit | 835e5ac3f98e78eca5c512bd48bd1880b90c4eb1 (patch) | |
tree | 1074e1782e58ec6c59ed4650dbcae769a4ba799b /scripts/generate_rust_analyzer.py | |
parent | riscv: perf: Fix callchain parse error with kernel tracepoint events (diff) | |
download | linux-rng-835e5ac3f98e78eca5c512bd48bd1880b90c4eb1.tar.xz linux-rng-835e5ac3f98e78eca5c512bd48bd1880b90c4eb1.zip |
riscv: Fix huge_ptep_set_wrprotect when PTE is a NAPOT
We need to avoid inconsistencies across the PTEs that form a NAPOT
region, so when we write protect such a region, we should clear and flush
all the PTEs to make sure that any of those PTEs is not cached which would
result in such inconsistencies (arm64 does the same).
Fixes: 82a1a1f3bfb6 ("riscv: mm: support Svnapot in hugetlb page")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20230428120120.21620-1-alexghiti@rivosinc.com
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions