asm_trampoline.S misses GCS flag for aarch64
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- 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