]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv: mm: synchronize MMU after pte change
authorShihPo Hung <shihpo.hung@sifive.com>
Mon, 17 Jun 2019 04:26:17 +0000 (12:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jun 2019 03:36:00 +0000 (11:36 +0800)
commita96ac5cb8a56ad24c663dd67f8865df30f4f7b84
tree7533fede94058fe12778d5910f908b3ac2eba524
parent5ad9a23e6daef31c23895c5a0d8f0bc1fb4f69f6
riscv: mm: synchronize MMU after pte change

commit bf587caae305ae3b4393077fb22c98478ee55755 upstream.

Because RISC-V compliant implementations can cache invalid entries
in TLB, an SFENCE.VMA is necessary after changes to the page table.
This patch adds an SFENCE.vma for the vmalloc_fault path.

Signed-off-by: ShihPo Hung <shihpo.hung@sifive.com>
[paul.walmsley@sifive.com: reversed tab->whitespace conversion,
 wrapped comment lines]
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: linux-riscv@lists.infradead.org
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/riscv/mm/fault.c