asm_trampoline.S misses GCS flag for aarch64
还没有人认领这个 Issue。
- 主要语言
- 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:
- https://community.arm.com/arm-community-blogs/b/tools-software-ides-blog/posts/gcc-15-continuously-improving#guarded
- https://docs.kernel.org/next/arch/arm64/gcs.html
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 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