Skip to content

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

Merged
vstinner merged 1 commit into
python:3.14from
stratakis:3.14_x86_64_branch_protections
Jun 10, 2025
Merged

vstinner merged 1 commit into
python:3.14from
stratakis:3.14_x86_64_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 8943f26 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F135345%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 ran manually test_perf_profiler locally on my Fedora 42 (x86-64): the test pass with this change.

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

3 participants