From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
To: "broonie@kernel.org" <broonie@kernel.org>
Cc: "debug@rivosinc.com" <debug@rivosinc.com>,
"linux-riscv@lists.infradead.org"
<linux-riscv@lists.infradead.org>,
"bill.roberts@foss.arm.com" <bill.roberts@foss.arm.com>,
"linux-api@vger.kernel.org" <linux-api@vger.kernel.org>,
"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-hardening@vger.kernel.org"
<linux-hardening@vger.kernel.org>
Subject: Re: Shadow Stack Locking Semantics between arch's
Date: Fri, 28 Aug 2026 16:48:36 +0000 [thread overview]
Message-ID: <e126b2a52321c0a9a6e9de425304e01a62256634.camel@intel.com> (raw)
In-Reply-To: <c4ac49d9-1fdb-46c4-9303-f17a517ac4c1@sirena.org.uk>
On Fri, 2026-08-28 at 14:27 +0100, Mark Brown wrote:
> Yeah, it is. I can't think why someone would ask for that either, but
> equally it's more work to explicitly have a list of combinations we
> reject for policy reasons. At least on arm64 each permission just comes
> down to a separate bit in a control register so they're fully
> independent all the way down to the hardware.
If we want to have a unified API (Bill convinced me that we did, but maybe we
should have more discussion on this point), we will need to hammer out the small
differences between the arch's. For technically supported, but nonsensical
combos. I'd think to resolve the differences by not supporting them. But I mean,
it's not the end of the world. In the end we are just talking about confusing a
handful of libc developers. They can be probably handle things.
>
> > > > > It has been on my list to look at this
> > > > > repitition at some point, it had been held up by the clone3() stuff
> > > > > but
> > > > > that seems to have died a death for now.
>
> > > > Oh? What was the blocker?
>
> > > Basically the glibc people weren't convinced they'd ever want to reuse a
> > > shadow stack at which point having the kernel free and reallocate each
> > > time
> > > is just as easy. It saves having to handle corner cases with threads that
> > > didn't exit cleanly.
>
> > I thought it was also because they wanted finer grained control of stack
> > sizes
> > too? But yea, if no libc wants it, it's a hard sell.
>
> They'd rather have just a size control for that, probably a process wide
> control would be most useful since it's likely to be the same number for
> all threads. I suspect the main use casse would be someone trying to do
> green threads, where there's an extra real thread being created.
Ok, don't want to re-litigate anything. But at some point someone was talking
about a case where you needed to create a special large stack.
In general it makes sense to not add this if no one is pestering about it.
next prev parent reply other threads:[~2026-08-28 16:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 17:15 Bill Roberts
2026-08-27 17:52 ` Bill Roberts
2026-08-27 18:14 ` Mark Brown
2026-08-27 21:27 ` Edgecombe, Rick P
2026-08-27 21:41 ` Mark Brown
2026-08-27 22:37 ` Edgecombe, Rick P
2026-08-28 13:27 ` Mark Brown
2026-08-28 16:48 ` Edgecombe, Rick P [this message]
2026-08-28 17:11 ` Mark Brown
2026-09-09 17:57 ` Bill Roberts
2026-09-09 18:06 ` Mark Brown
2026-09-09 20:01 ` Bill Roberts
2026-09-10 14:19 ` 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=e126b2a52321c0a9a6e9de425304e01a62256634.camel@intel.com \
--to=rick.p.edgecombe@intel.com \
--cc=bill.roberts@foss.arm.com \
--cc=broonie@kernel.org \
--cc=dave.hansen@linux.intel.com \
--cc=debug@rivosinc.com \
--cc=linux-api@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.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®