[PW_SID:960529] riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm#386
[PW_SID:960529] riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm#386linux-riscv-bot wants to merge 2 commits into
Conversation
When the prctl() interface for pointer masking was added, it did not check that the pointer masking ISA extension was supported, only the individual submodes. Userspace could still attempt to disable pointer masking and query the pointer masking state. commit 81de1af ("riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL") disallowed the former, as the senvcfg write could crash on older systems. PR_GET_TAGGED_ADDR_CTRL state does not crash, because it reads only kernel-internal state and not senvcfg, but it should still be disallowed for consistency. Fixes: 09d6775 ("riscv: Add support for userspace pointer masking") Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm" |
|
Patch 1: "riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm" |
|
Patch 1: "riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm" |
|
Patch 1: "riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm" |
|
Patch 1: "riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm" |
|
Patch 1: "riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm" |
|
Patch 1: "riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm" |
|
Patch 1: "riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm" |
|
Patch 1: "riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm" |
|
Patch 1: "riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm" |
|
Patch 1: "riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm" |
|
Patch 1: "riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm" |
625be03 to
472f050
Compare
PR for series 960529 applied to workflow__riscv__fixes
Name: riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=960529
Version: 1