aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/net.c
diff options
context:
space:
mode:
authorSamuel Holland <[email protected]>2025-05-07 14:52:18 +0000
committerAlexandre Ghiti <[email protected]>2025-05-08 12:01:01 +0000
commit7f1c3de1370bc6a8ad5157336b258067dac0ae9c (patch)
tree40bce945112ae5dd72edf24f2d951b2e27c765f6 /net/tipc/net.c
parentscripts: Do not strip .rela.dyn section (diff)
downloadkernel-7f1c3de1370bc6a8ad5157336b258067dac0ae9c.tar.gz
kernel-7f1c3de1370bc6a8ad5157336b258067dac0ae9c.zip
riscv: Disallow PR_GET_TAGGED_ADDR_CTRL without Supm
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 81de1afb2dd1 ("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: 09d6775f503b ("riscv: Add support for userspace pointer masking") Signed-off-by: Samuel Holland <[email protected]> Reviewed-by: Nam Cao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Ghiti <[email protected]>
Diffstat (limited to 'net/tipc/net.c')
0 files changed, 0 insertions, 0 deletions