The motivation for having a common interface between x86 and others is:
1. Common permission checking for an LSM (future patches)
2. Common userspace
This leaves the arch_prctl interface intact, so older userspaces will
continue to work. However, for item 1, when we introduce LSM hooks, they
will need to reside on both the prctl and arch_prctl interfaces but will
both call into the LSM with all of the same permission bits and checks.
The SE Linux patches will follow these, after I address any feedback on
these patches, since they can stand alone.
Bill Roberts (2):
x86/shstk: support via prctl
selftests/x86: add generic prctl shadow stack test
arch/x86/kernel/shstk.c | 35 ++++++++++++
tools/testing/selftests/x86/Makefile | 3 +-
.../testing/selftests/x86/test_shadow_stack.c | 55 +++++++++++++++----
.../selftests/x86/test_shadow_stack_prctl.c | 3 +
4 files changed, 85 insertions(+), 11 deletions(-)
create mode 100644 tools/testing/selftests/x86/test_shadow_stack_prctl.c
--
2.54.0