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

Aperta
#1,925 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@andreiltd ci sta già lavorando.

Dal 12/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
Rust
Stelle
4.8k
Fork
223
Merge medio
1g 18h
PR unite (30g)
65

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hyperlight-dev/hyperlight

Tutte le issue di hyperlight-dev/hyperlight

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.