From: Bill Roberts <bill.roberts@arm.com>
To: "H. Peter Anvin" <hpa@zytor.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
Ingo Molnar <mingo@redhat.com>,
rick.p.edgecombe@intel.com, Shuah Khan <shuah@kernel.org>,
Thomas Gleixner <tglx@kernel.org>,
x86@kernel.org
Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org,
Bill Roberts <bill.roberts@arm.com>
Subject: [PATCH v5 0/6] x86: Support shstk via prctl
Date: Mon, 9 Nov 2026 12:27:52 -0600 [thread overview]
Message-ID: <20261109182758.252223-1-bill.roberts@arm.com> (raw)
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
next reply other threads:[~2026-11-09 18:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 18:27 Bill Roberts [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261109182758.252223-1-bill.roberts@arm.com \
--to=bill.roberts@arm.com \
--cc=bp@alien8.de \
--cc=bpf@vger.kernel.org \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rick.p.edgecombe@intel.com \
--cc=shuah@kernel.org \
--cc=tglx@kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®