hermit-os/uhyve

Prevent hypercall handling from panicking

Aperta

#631 aperta il 31 gen 2024

 (7 commenti) (0 reazioni) (0 assegnatari)Rust (35 fork)auto 404
feature/uhyve-interfacehelp wanted

Metriche repository

Star
 (293 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

A panic in the hypercall causes uhyve to hang indefinitely, as only the specific CPU thread will panic, and all other threads are still waiting for the barrier in https://github.com/hermit-os/uhyve/blob/360b613ee7498d0a1b651399f27fb6f5460497ad/src/linux/mod.rs#L137 to pass, which never happens as the thread that could activate it has paniced. We should remove any unwrap() or expect() in the code that is called by run.

Guida contributor