[PATCH v11 2/2] arm64: Enable BTI for main executable as well as the interpreter

Mark Brown broonie at kernel.org
Tue Mar 15 05:19:34 PDT 2022


On Mon, Mar 14, 2022 at 08:57:49AM +0000, Catalin Marinas wrote:
> On Tue, Mar 08, 2022 at 12:01:17PM -0600, Jeremy Linton wrote:

> > > Resolve this by adding a sysctl abi.bti_main which causes the kernel to
> > > checking the BTI property for the main executable and enable BTI if it
> > > is present when doing the initial mapping. This sysctl is disabled by
> > > default.

> > This seems less than ideal, maybe the default can be flipped with a CONFIG
> > option?

> I'm not keen on config options changing the ABI. If there's a good
> chance that this feature won't be turned on (via sysfs) in distros with
> MDWE, I'd rather drop the whole series than maintain unused code in the
> kernel.

I think it's more just that it's a pain to have to also update userspace
for something fairly low risk than that it's an insurmountable obstacle.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20220315/9efb5988/attachment.sig>


More information about the linux-arm-kernel mailing list