diff options
author | Samuel Holland <[email protected]> | 2024-10-16 13:27:45 -0700 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2024-10-24 14:12:55 -0700 |
commit | 09d6775f503b393d0457c7126aa43208e1724004 (patch) | |
tree | 87c43823074a94f43def3320e1169d059818ff8c /drivers/fpga/fpga-mgr.c | |
parent | 29eedc7d1587f42f33ae209be45c89c424ee9c00 (diff) |
riscv: Add support for userspace pointer masking
RISC-V supports pointer masking with a variable number of tag bits
(which is called "PMLEN" in the specification) and which is configured
at the next higher privilege level.
Wire up the PR_SET_TAGGED_ADDR_CTRL and PR_GET_TAGGED_ADDR_CTRL prctls
so userspace can request a lower bound on the number of tag bits and
determine the actual number of tag bits. As with arm64's
PR_TAGGED_ADDR_ENABLE, the pointer masking configuration is
thread-scoped, inherited on clone() and fork() and cleared on execve().
Reviewed-by: Charlie Jenkins <[email protected]>
Tested-by: Charlie Jenkins <[email protected]>
Signed-off-by: Samuel Holland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions