]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add BTI landing pads to the AArch64 SHA2 assembly
authorAndrew Turner <andrew@fubar.geek.nz>
Tue, 3 Oct 2023 22:12:36 +0000 (23:12 +0100)
committerGitHub <noreply@github.com>
Tue, 3 Oct 2023 22:12:36 +0000 (15:12 -0700)
commitf795e90a11c683d64bacc260fb7feab705b220b1
tree3e04b7eecd0240c88894eef6c7866ea38841efb4
parenteb955f6e930e2516bbc4c569f33b5314835c45b6
Add BTI landing pads to the AArch64 SHA2 assembly

The Arm Branch Target Identification (BTI) extension guards against
branching to an unintended instruction.

To support BTI add the landing pad instructions to the SHA2 functions.
These are from the hint space so are a nop on hardware that lacks BTI
support or if BTI isn't enabled.

Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Andrew Turner <andrew.turner4@arm.com>
Closes #14862
Closes #15339
module/icp/asm-aarch64/sha2/sha256-armv8.S
module/icp/asm-aarch64/sha2/sha512-armv8.S