aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_prog_array_init.c
diff options
context:
space:
mode:
authorArd Biesheuvel <[email protected]>2023-01-09 18:47:59 +0100
committerCatalin Marinas <[email protected]>2023-01-20 14:26:18 +0000
commit2198d07c509f1db4a1185d1f65aaada794c6ea59 (patch)
tree959c8deb4f69da3440f51b57bd907b4af036f602 /tools/testing/selftests/bpf/progs/test_prog_array_init.c
parentb7bfaa761d760e72a969d116517eaa12e404c262 (diff)
arm64: Always load shadow stack pointer directly from the task struct
All occurrences of the scs_load macro load the value of the shadow call stack pointer from the task which is current at that point. So instead of taking a task struct register argument in the scs_load macro to specify the task struct to load from, let's always reference the current task directly. This should make it much harder to exploit any instruction sequences reloading the shadow call stack pointer register from memory. Signed-off-by: Ard Biesheuvel <[email protected]> Acked-by: Mark Rutland <[email protected]> Reviewed-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions