feat: detect support for MTE and BTI
MTE and BTI are Armv8.5-A features which help memory safety and control-flow integrity. This CL adds support for detecting them using the AT_HWCAP2 Linux API. MTE contains new instructions which will crash older cores. base::CPU can now be used to tell whether these instructions are safe to execute and adds a test to verify this. This does not test whether MTE is configured correctly to give any security properties, a subsequent CL will add tests for this. Bug: 1145581, 1137393 Change-Id: I9abd66af1c1bdbf49eebd17f225a59b0a6cdfd33 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2526738 Commit-Queue: Richard Townsend <richard.townsend@arm.com> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#831180}
Showing
Please register or sign in to comment