[Bug] Page table walker in exception handler causes stack overflow on AArch64 and x86_64 debug builds

未關閉
#1,925 3 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 1 天內回覆

@andreiltd 已經在處理了。

開始於 2026年10月12日。

評估

這個 Issue 還沒有評估資料。

描述

C-bug

We are currently reserving 2 additional scratch pages for exception handler, but the measured stack usage peak for debug builds is much larger than that:

+----------------------------------------------------+
¦ Architecture ¦ Guest ¦   Debug peak ¦ Release peak ¦
+--------------+-------+--------------+--------------¦
¦ AArch64      ¦ Rust  ¦ 38,896 bytes ¦  6,720 bytes ¦
+--------------+-------+--------------+--------------¦
¦ AArch64      ¦ C     ¦ 39,024 bytes ¦  6,576 bytes ¦
+--------------+-------+--------------+--------------¦
¦ x86_64       ¦ Rust  ¦ 10,944 bytes ¦  1,952 bytes ¦
+--------------+-------+--------------+--------------¦
¦ x86_64       ¦ C     ¦ 10,944 bytes ¦  1,904 bytes ¦
+----------------------------------------------------+

In the short term we should increase the reservation to 12 pages, long term the walker code should be reviewed, checked for deep recursion and optimized for stack usage. 40K on arm is unexpected but x86 also doesn't fit using current budget.

主要語言
Rust
星號
4.8k
分支
223
平均合併
1 天 18 小時
30 天內合併 PR
65

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

hyperlight-dev/hyperlight 的其他 Issue

查看 hyperlight-dev/hyperlight 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。