The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/2] x86: Support shstk via prctl
@ 2026-07-14 15:47 Bill Roberts
  2026-07-14 15:47 ` [PATCH 1/2] x86/shstk: support " Bill Roberts
  2026-07-14 15:47 ` [PATCH 2/2] selftests/x86: add generic prctl shadow stack test Bill Roberts
  0 siblings, 2 replies; 13+ messages in thread
From: Bill Roberts @ 2026-07-14 15:47 UTC (permalink / raw)
  To: H. Peter Anvin, Albert Ou, Alexandre Ghiti, Borislav Petkov,
	Dave Hansen, Ingo Molnar, Palmer Dabbelt, Paul Walmsley,
	Shuah Khan, Thomas Gleixner, x86
  Cc: linux-kernel, linux-kselftest, linux-riscv, Bill Roberts

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-08-05 17:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-14 15:47 [PATCH 0/2] x86: Support shstk via prctl Bill Roberts
2026-07-14 15:47 ` [PATCH 1/2] x86/shstk: support " Bill Roberts
2026-07-29 13:29   ` Edgecombe, Rick P
2026-08-03 17:41     ` Bill Roberts
2026-08-03 18:14       ` Edgecombe, Rick P
2026-08-04 18:23         ` Bill Roberts
2026-08-04 18:49           ` Edgecombe, Rick P
2026-08-04 20:43             ` Bill Roberts
2026-08-04 21:59               ` Edgecombe, Rick P
2026-08-05 17:16                 ` Bill Roberts
2026-07-14 15:47 ` [PATCH 2/2] selftests/x86: add generic prctl shadow stack test Bill Roberts
2026-07-29 13:31   ` Edgecombe, Rick P
2026-08-03 17:50     ` Bill Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox