Re: [PATCH v9 23/42] Documentation/x86: Add CET shadow stack description
From: Mark Brown
Date: Tue Jun 13 2023 - 11:15:59 EST
On Tue, Jun 13, 2023 at 02:37:18PM +0200, Florian Weimer wrote:
> > I appreciate it's very late in the development of this series but given
> > that there are very similar features on both arm64 and riscv would it
> > make sense to make these just regular prctl()s, arch_prctl() isn't used
> > on other architectures and it'd reduce the amount of arch specific work
> > that userspace needs to do if the interface is shared.
> Has the Arm feature been fully disclosed?
Unfortunately no, it's not yet been folded into the ARM. The system
registers and instructions are in the latest XML releases but that's not
the full story.
> I would expect the integration with stack switching and unwinding
> differs between architectures even if the core mechanism is similar.
> It's probably tempting to handle shadow stack placement differently,
> too.
Yeah, there's likely to be some differences (though given the amount of
discussion on the x86 implementation I'm trying to follow the decisions
there as much as reasonable on the basis that we should hopefully come
to the same conclusions). It seemed worth mentioning as a needless
bump, OTOH I defninitely don't see it as critical.
Attachment:
signature.asc
Description: PGP signature