Skip to content

[3.15] gh-139808: Add branch protections for aarch64 in asm_trampoline.S (GH-130864) - #149730

Merged
vstinner merged 1 commit into
python:3.15from
miss-islington:backport-da8477b-3.15
May 12, 2026
Merged

vstinner merged 1 commit into
python:3.15from
miss-islington:backport-da8477b-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented May 12, 2026 •

Copy link
Copy Markdown
Contributor

Apply protection against ROP/JOP attacks for aarch64 on asm_trampoline.S.

The BTI flag must be applied in assembler sources for this class
of attacks to be mitigated on newer aarch64 processors.

See also:
https://sourceware.org/annobin/annobin.html/Test-branch-protection.html
and
https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/enabling-pac-and-bti-on-aarch64
(cherry picked from commit da8477b)

Co-authored-by: stratakis cstratak@redhat.com
Co-authored-by: Victor Stinner vstinner@python.org

….S (pythonGH-130864)

Apply protection against ROP/JOP attacks for aarch64 on asm_trampoline.S.

The BTI flag must be applied in assembler sources for this class
of attacks to be mitigated on newer aarch64 processors.

See also:
https://sourceware.org/annobin/annobin.html/Test-branch-protection.html
and
https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/enabling-pac-and-bti-on-aarch64
(cherry picked from commit da8477b)

Co-authored-by: stratakis <cstratak@redhat.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner
vstinner merged commit 564902e into python:3.15 May 12, 2026
69 checks passed
@miss-islington
miss-islington deleted the backport-da8477b-3.15 branch May 12, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants