python / python/cpython

asm_trampoline.S misses GCS flag for aarch64

未关闭
#142,034 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

build type-bug
主要语言
Python
星标
77.2k
派生
35.9k
PR 合并指标
PR 指标待抓取

描述

Bug report

Bug description:

When building with GCC15+, binutils 2.44+, glibc 2.41+ and -mbranch-protection=standard on aarch64, this enables PAC and BTI as stated in https://github.com/python/cpython/issues/139808 but also GCS (Guarded Control Stack).
PAC/BTI is already covered with https://github.com/python/cpython/pull/130864
For GCS, we would need to add some additional gnu properties on top of this patch, similarly to https://github.com/smuellerDD/leancrypto/commit/fe9751f2b13581e938f25b82f3e725372223af81

Maybe https://github.com/python/cpython/pull/130864 could be updated to also cover GCS?

More details on GCS:

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 asm_trampoline.S 以及 pull request 130864 中现有的 PAC/BTI 处理开始。比较所引用的 leancrypto commit 中的 GNU properties,然后在 Linux 上使用 GCC 15+、binutils 2.44+、glibc 2.41+ 和 -mbranch-protection=standard 构建 CPython main;当 aarch64 trampoline 也声明支持 GCS 时即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
linux, python
领域
build-system, operating-systems, security
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。