Skip to content

[3.13] gh-128605: Add branch protections for x86_64 in asm_trampoline.S (#128606) - #135353

Merged
vstinner merged 1 commit into
python:3.13from
stratakis:3.13_branch_protections
Jun 11, 2025
Merged

vstinner merged 1 commit into
python:3.13from
stratakis:3.13_branch_protections

Conversation

@stratakis

@stratakis stratakis commented Jun 10, 2025 •

Copy link
Copy Markdown
Contributor

Apply Intel Control-flow Technology for x86-64 on asm_trampoline.S.

Required for mitigation against return-oriented programming (ROP) and Call or Jump Oriented Programming (COP/JOP) attacks.

Manual application is required for the assembly files.

See also: https://sourceware.org/annobin/annobin.html/Test-cf-protection.html

…poline.S (python#128606)

Apply Intel Control-flow Technology for x86-64 on asm_trampoline.S.

Required for mitigation against return-oriented programming (ROP)
and Call or Jump Oriented Programming (COP/JOP) attacks.

Manual application is required for the assembly files.

See also: https://sourceware.org/annobin/annobin.html/Test-cf-protection.html
@stratakis

Copy link
Copy Markdown
Contributor Author

Ideally it should be tested with the !buildbot AMD64.Fedora.Stable

@vstinner

Copy link
Copy Markdown
Member

!buildbot AMD64 Fedora Stable

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @vstinner for commit be2c6ac 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F135353%2Fmerge

The command will test the builders whose names match following regular expression: AMD64 Fedora Stable

The builders matched are:

  • AMD64 Fedora Stable Refleaks PR
  • AMD64 Fedora Stable Clang Installed PR
  • AMD64 Fedora Stable LTO PR
  • AMD64 Fedora Stable PR
  • AMD64 Fedora Stable LTO + PGO PR
  • AMD64 Fedora Stable Clang PR

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I tested the change locally on my Fedora 42 (x86-64): test_perf_profiler pass.

Let's see if the test pass on buildbots as well.

@vstinner

Copy link
Copy Markdown
Member

The test passed on Fedora Stable buildbot workers. Ok, let's merge this change again.

@vstinner
vstinner merged commit 6519257 into python:3.13 Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants