[PW_SID:1066041] riscv: mm: Verify per-hart ASID bits when using ASID allocator#1604
[PW_SID:1066041] riscv: mm: Verify per-hart ASID bits when using ASID allocator#1604linux-riscv-bot wants to merge 1 commit intoworkflow__riscv__fixesfrom
Conversation
RISC-V probes the number of implemented ASID bits in SATP on the boot hart and enables the ASID allocator based on that result. However, the privileged spec allows harts to implement fewer ASID bits by hardwiring the upper bits to zero. If a secondary hart implements fewer ASID bits than the boot hart while the ASID allocator is enabled, different Linux ASIDs may alias on that hart. This can allow stale TLB entries to survive and potentially corrupt memory. Verify the number of implemented ASID bits on each CPU as it comes online, and refuse to online CPUs that support fewer ASID bits than the boot CPU. Signed-off-by: Shengming Hu <hu.shengming@zte.com.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator" |
|
Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator" |
|
Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator" |
|
Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator" |
|
Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator" |
|
Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator" |
|
Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator" |
|
Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator" |
|
Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator" |
|
Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator" |
|
Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator" |
|
Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator" |
PR for series 1066041 applied to workflow__riscv__fixes
Name: riscv: mm: Verify per-hart ASID bits when using ASID allocator
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1066041
Version: 1