hermit-os/uhyve

Prevent hypercall handling from panicking

Aberta

#631 aberto em 31 de jan. de 2024

 (7 comentários) (0 reação) (0 responsável)Rust (35 forks)auto 404
feature/uhyve-interfacehelp wanted

Métricas do repositório

Stars
 (293 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador