[PW_SID:1148763] Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set" - #2502
[PW_SID:1148763] Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set"#2502linux-riscv-bot wants to merge 1 commit into
Conversation
This reverts commit 3033b2b. The reverted patch is userspace-visible behavior change, not a bug fix. The two variables here (pmm and pmlen) control two independent features: pmm is the _hardware_ pointer masking mode that applies while executing in userspace. pmlen is the shift amount that the _kernel_ uses when untagging addresses; PMLEN_0 means no untagging occurs, so the kernel does not accept tagged addresses in syscall arguments. It is valid (as documented and tested by the self test) to enable pointer masking without enabling the tagged address ABI. This separation is necessary to allow userspace to create an execution environment similar to what the kernel supports on arm64 by default, where TBI is enabled but the tagged address ABI is not. (On arm64, there is no equivalent to PR_PMLEN_MASK because TBI is always enabled.) Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set"" |
|
Patch 1: "Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set"" |
|
Patch 1: "Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set"" |
|
Patch 1: "Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set"" |
|
Patch 1: "Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set"" |
|
Patch 1: "Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set"" |
|
Patch 1: "Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set"" |
|
Patch 1: "Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set"" |
|
Patch 1: "Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set"" |
|
Patch 1: "Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set"" |
|
Patch 1: "Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set"" |
|
Patch 1: "Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set"" |
PR for series 1148763 applied to workflow__riscv__fixes
Name: Revert "riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set"
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1148763
Version: 1