From: Bill Roberts <bill.roberts@arm.com>
To: "H. Peter Anvin" <hpa@zytor.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
Ingo Molnar <mingo@redhat.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Paul Walmsley <pjw@kernel.org>,
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, linux-riscv@lists.infradead.org,
Bill Roberts <bill.roberts@arm.com>
Subject: [PATCH v4 0/6]
Date: Wed, 16 Sep 2026 04:52:18 -0500 [thread overview]
Message-ID: <20260916095224.1533971-1-bill.roberts@arm.com> (raw)
This is a continuation of:
- https://lore.kernel.org/all/20260818225428.1983328-1-bill.roberts@arm.com/
FWIW X86 Maintaners and Rick, I structured this so you can just pull the bug fixes only
(up to but not including commit "x86/shstk: support via prctl") if you have concerns
on the other patches for me to address, this will allow you to take the bug fixes
and additional test now if desired.
History:
- v1: Initial Patches
- v2: Nacked by author
- Refactors the test suite
- v3:
- Fixes an existing fork bug pointed out by Shashiko
- Fixes a state rollback issue in the patch itself
- Fixes Makefile dependencies
- Add's a test for shadow stack state locking
- Refactors the arch_prctl and prctl tests into two different files using
a shared testing suite file
- v4:
- fix rollback state logic
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 | 83 ++
tools/testing/selftests/x86/Makefile | 13 +-
tools/testing/selftests/x86/shadow_stack.c | 1287 +++++++++++++++++
tools/testing/selftests/x86/shadow_stack.h | 14 +
.../testing/selftests/x86/test_shadow_stack.c | 1168 +--------------
.../selftests/x86/test_shadow_stack_prctl.c | 12 +
6 files changed, 1411 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-09-15 19:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 9:52 Bill Roberts [this message]
2026-09-16 9:52 ` [PATCH v4 1/6] selftests/x86: fix Makefile dependencies Bill Roberts
2026-09-16 9:52 ` [PATCH v4 2/6] selftests/x86: fix fork bug Bill Roberts
2026-09-16 9:52 ` [PATCH v4 3/6] selftests/x86: add shadow stack lock test Bill Roberts
2026-09-16 9:52 ` [PATCH v4 4/6] x86/shstk: support via prctl Bill Roberts
2026-09-16 9:52 ` [PATCH v4 5/6] selftests/x86: support header files in extra-files Bill Roberts
2026-09-16 9:52 ` [PATCH v4 6/6] selftests/x86: add generic prctl shadow stack test Bill Roberts
-- strict thread matches above, loose matches on Subject: below --
2017-05-17 12:47 [PATCH v4 0/6] Geert Uytterhoeven
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=20260916095224.1533971-1-bill.roberts@arm.com \
--to=bill.roberts@arm.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--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=linux-riscv@lists.infradead.org \
--cc=mingo@redhat.com \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--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®