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>, Shuah Khan <shuah@kernel.org>,
Thomas Gleixner <tglx@kernel.org>,
x86@kernel.org
Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-riscv@lists.infradead.org,
Bill Roberts <bill.roberts@arm.com>
Subject: [PATCH 0/2] x86: Support shstk via prctl
Date: Tue, 14 Jul 2026 10:47:38 -0500 [thread overview]
Message-ID: <20260714154740.140431-1-bill.roberts@arm.com> (raw)
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
next reply other threads:[~2026-07-14 15:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 15:47 Bill Roberts [this message]
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
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=20260714154740.140431-1-bill.roberts@arm.com \
--to=bill.roberts@arm.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=bp@alien8.de \
--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=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®