summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSamuel Holland <samuel.holland@sifive.com>2026-10-07 08:57:41 -0700
committerPaul Walmsley <pjw@kernel.org>2026-10-08 14:12:01 -0600
commitca47e289113552fcbd7ab9268cee1f0c27d35590 (patch)
tree0503047e6a85cc29bd3eca0370be9bf5a6c6e107 /include
parentdf333b72c0e14d6cffec72ce9a00503f12d1e28d (diff)
riscv: cfi: Only write envcfg CSR when task is current
set_shstk_status() and set_indir_lp_status() take a task argument, which lets them operate on tasks other than current, but they always write the envcfg CSR for the current task. Fix this with the envcfg_update_bits() helper, which only writes the envcfg CSR when operating on current. Fixes: 61a0200211d31e ("riscv: Implement arch-agnostic shadow stack prctls") Fixes: 8a9e22d2ca5855 ("riscv: Implement indirect branch tracking prctls") Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Link: https://patch.msgid.link/20261007155748.291814-2-samuel.holland@sifive.com Cc: stable@vger.kernel.org Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions