Skip to content

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

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-da8477b-3.15
Open

[3.15] gh-139808: Add branch protections for aarch64 in asm_trampoline.S (GH-130864)#149730
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-da8477b-3.15

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

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

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 da8477b25c6124c961306d4d7cd5ec7dafda6be4)

Co-authored-by: stratakis <cstratak@redhat.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants