]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-128605: Add branch protections for x86_64 in asm_trampoline.S (#128606...
authorstratakis <cstratak@redhat.com>
Tue, 10 Jun 2025 15:41:39 +0000 (17:41 +0200)
committerGitHub <noreply@github.com>
Tue, 10 Jun 2025 15:41:39 +0000 (17:41 +0200)
commit4b96a34978caed24b74051c3f5ea929ec843ad25
tree88dd8a2eb935ab6ee5173ff9c31c219afc3bea2f
parent081421a00ec0d59f352493d42d18a2e565304817
[3.14] gh-128605: Add branch protections for x86_64 in asm_trampoline.S (#128606) (#135345)

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