]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm64: Enable BTI in the kernel ELF loader
authorAndrew Turner <andrew@FreeBSD.org>
Thu, 2 Nov 2023 09:56:09 +0000 (09:56 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Thu, 22 Feb 2024 16:27:47 +0000 (16:27 +0000)
commit670af174e27b4f42f6e17521f18508ec78d5a776
tree1c2e90ed19bce43d406d6e18c6bf1e1ddb03ded5
parentc4e4a7596beb488b4878e9fa2a67cf49e330f78b
arm64: Enable BTI in the kernel ELF loader

Enable BTI in binaries loaded by the kernel. When the ELF file contains
the needed note indicating BTI is supported set the guarded page flag
for all segments.

Reviewed by: markj
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D42441
sys/arm64/arm64/elf_machdep.c