hyperlight-dev / hyperlight-dev/hyperlight

Check stack frames are correctly cleared when `hlt` is called

Aperta
#1,074 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area/security lifecycle/confirmed
Lingua principale
Rust
Stelle
4.7k
Fork
208
Merge medio
1g 7h
PR unite (30g)
47

Descrizione

We should ensure that the call to `hlt` instruction is only made after everything has been torn down so we do not leak anything.

An idea of how to implement such a fix can be found at [PR comment](https://github.com/hyperlight-dev/hyperlight/pull/1072#issuecomment-3609786020).
Which basically says we should use minimal `assembly` that only calls a rust function and then runs `hlt`, which ensures anything has been torn down before calling `hlt`

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.