mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v5 0/6] x86: Support shstk via prctl
@ 2026-11-09 18:27 Bill Roberts
  2026-11-09 18:27 ` [PATCH v5 1/6] selftests/x86: fix Makefile dependencies Bill Roberts
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Bill Roberts @ 2026-11-09 18:27 UTC (permalink / raw)
  To: H. Peter Anvin, Borislav Petkov, Dave Hansen, Ingo Molnar,
	rick.p.edgecombe, Shuah Khan, Thomas Gleixner, x86
  Cc: bpf, linux-kernel, linux-kselftest, Bill Roberts

This is a continuation of:
  https://lore.kernel.org/lkml/20260916095224.1533971-1-bill.roberts@arm.com/

FWIW, x86 maintainers and Rick, I structured this series so that the
initial bug fixes and additional test (patches 1-3) can be taken
independently of the prctl() enablement. If there are concerns with
the remaining patches that require further work, this allows the
fixes and additional test to be merged without waiting for the
rest of the series.

History:
  - v1: Initial patches
  - v2: NAKed by author
    - Refactor the test suite
  - v3:
    - Fix an existing fork bug pointed out by Sashiko
    - Fix a state rollback issue
    - Fix Makefile dependencies
    - Add a test for shadow stack state locking
    - Refactor the arch_prctl and prctl tests into separate entry
      points using a shared test implementation
  - v4:
    - Fix rollback state logic
  - v5:
    - Expand commit messages to explain behavior and implementation
      rationale
    - Move unsigned long status to the beginning of the function
    - Shorten the comment in arch_set_shadow_stack_status()
    - Rewrite the WRSS comment in imperative mood
    - Remove an unrelated whitespace change in test_shadow_stack.c

Bill Roberts (6):
  selftests/x86: fix Makefile dependencies
  selftests/x86: fix fork bug
  selftests/x86: add shadow stack lock test
  x86/shstk: support via prctl
  selftests/x86: support header files in extra-files
  selftests/x86: add generic prctl shadow stack test

 arch/x86/kernel/shstk.c                       |   80 +
 tools/testing/selftests/x86/Makefile          |   12 +-
 tools/testing/selftests/x86/shadow_stack.c    | 1287 +++++++++++++++++
 tools/testing/selftests/x86/shadow_stack.h    |   14 +
 .../testing/selftests/x86/test_shadow_stack.c | 1167 +--------------
 .../selftests/x86/test_shadow_stack_prctl.c   |   12 +
 6 files changed, 1406 insertions(+), 1166 deletions(-)
 create mode 100644 tools/testing/selftests/x86/shadow_stack.c
 create mode 100644 tools/testing/selftests/x86/shadow_stack.h
 create mode 100644 tools/testing/selftests/x86/test_shadow_stack_prctl.c

-- 
2.55.0


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

end of thread, other threads:[~2026-11-09 18:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 18:27 [PATCH v5 0/6] x86: Support shstk via prctl Bill Roberts
2026-11-09 18:27 ` [PATCH v5 1/6] selftests/x86: fix Makefile dependencies Bill Roberts
2026-11-09 18:27 ` [PATCH v5 2/6] selftests/x86: fix fork bug Bill Roberts
2026-11-09 18:27 ` [PATCH v5 3/6] selftests/x86: add shadow stack lock test Bill Roberts
2026-11-09 18:27 ` [PATCH v5 4/6] x86/shstk: support via prctl Bill Roberts
2026-11-09 18:27 ` [PATCH v5 5/6] selftests/x86: support header files in extra-files Bill Roberts
2026-11-09 18:27 ` [PATCH v5 6/6] selftests/x86: add generic prctl shadow stack test Bill Roberts

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

all inboxes | Powered by JetHome®