bti instruction is removed in release version #124314
Labels
A-target-feature
Area: Enabling/disabling target features like AVX, Neon, etc.
C-bug
Category: This is a bug.
O-AArch64
Armv8-A or later processors in AArch64 mode
PG-exploit-mitigations
Project group: Exploit mitigations
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When using aarch64-unknown-uefi to build the release version of the efi file, some bti instructions are removed, but there are still indirect jumps to the location of the removed bti instructions, such as'BLR X8'.
I tried this code:
.cargo/config.toml
Cargo.toml
and i build it :
rustc --version --verbose
:when I run uefi on board, BTI FAULT occurs:
When I disassembled the efi file, I found that there was no BTI instruction in place of the malfunctioning function.
The indirect jump function is as follows. I don't remember which BLR X8 instruction jumps to the function above.
The text was updated successfully, but these errors were encountered: