[PW_SID:1118753] [v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap#2172
[PW_SID:1118753] [v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap#2172linux-riscv-bot wants to merge 2 commits into
Conversation
section_activate() does not flush TLB after populating new vmemmap pages. On most architectures, this is okay. However it is a problem on RISC-V since there the TLB caching non-present entries is permitted, which causes spurious faults on some hardwares. This seems to be most easily reproduced with DEBUG_VM=y and PAGE_POISONING=y, which causes these newly mapped struct pages to be poisoned i.e. written to immediately after mapping. Add a hook vmemmap_populate_finalize() in __populate_section_memmap() after population, to allow architectures to handle such situations as needed. Then implement it on RISC-V to arrange for the existing exception handler code to deal with these faults if they happen. Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap" |
|
Patch 1: "[v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap" |
|
Patch 1: "[v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap" |
|
Patch 1: "[v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap" |
|
Patch 1: "[v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap" |
|
Patch 1: "[v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap" |
|
Patch 1: "[v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap" |
|
Patch 1: "[v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap" |
|
Patch 1: "[v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap" |
|
Patch 1: "[v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap" |
|
Patch 1: "[v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap" |
|
Patch 1: "[v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap" |
89be0ce to
dc5ff20
Compare
PR for series 1118753 applied to workflow__riscv__fixes
Name: [v4] riscv: mm: Avoid spurious fault after hotplugging vmemmap
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1118753
Version: 4