]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-128605: Add branch protections for x86_64 in asm_trampoline.S (#128606...
authorstratakis <cstratak@redhat.com>
Wed, 11 Jun 2025 10:09:20 +0000 (12:09 +0200)
committerGitHub <noreply@github.com>
Wed, 11 Jun 2025 10:09:20 +0000 (12:09 +0200)
commit65192572d2a727edc18524be5d2b70e4361c9b27
tree72f7c188814ee9020b638d424fb0820bfb112b76
parentffeaeaf6600dbbcb82039653d948ad2906630e88
[3.13] gh-128605: Add branch protections for x86_64 in asm_trampoline.S (#128606) (#135353)

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
Python/asm_trampoline.S
Python/perf_jit_trampoline.c