Skip to content

[PW_SID:1066041] riscv: mm: Verify per-hart ASID bits when using ASID allocator#1604

Open
linux-riscv-bot wants to merge 1 commit intoworkflow__riscv__fixesfrom
pw1066041
Open

[PW_SID:1066041] riscv: mm: Verify per-hart ASID bits when using ASID allocator#1604
linux-riscv-bot wants to merge 1 commit intoworkflow__riscv__fixesfrom
pw1066041

Conversation

@linux-riscv-bot
Copy link

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

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>
@linux-riscv-bot
Copy link
Author

Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 135.80 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1131.08 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1639.92 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 26.71 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 27.56 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.18 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 82.60 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator"
kdoc
Desc: Detects for kdoc errors
Duration: 0.80 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "riscv: mm: Verify per-hart ASID bits when using ASID allocator"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants