You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
asm_trampoline.S misses BTI/PAC protection flags for aarch64 #139808
asm_trampoline.S added here 6d791a9 misses the BTI/PAC protections offered for the latest aarch64 processors when using the -mbranch-protection=<protection> flag.
For C code the compiler takes care of that, however for the assembler files the relevant instructions need to be added manually.
This was discovered by running the annobin-annocheck tool on a Fedora machine:
$ annocheck --hardened libpython3.14.so.1.0
annocheck 'hardened' test fails for /usr/lib64/libpython3.14.so.1.0 on aarch64 dynamic-tags test because the BTI_PLT flag is missing from the dynamic tags
property-note test because properly formatted .note.gnu.property not found (it is needed for branch protection support)
When the protections are there, the binary/library should read:
Activity
gh-139808: Add branch protections for aarch64 in asm_trampoline.S (#1…
[3.15] gh-139808: Add branch protections for aarch64 in asm_trampolin…
[3.14] gh-139808: Add branch protections for aarch64 in asm_trampolin…
[3.13] gh-139808: Add branch protections for aarch64 in asm_trampolin…
[3.12] gh-139808: Add branch protections for aarch64 in asm_trampolin…