hermit-os/uhyve

Prevent hypercall handling from panicking

Open

#631 opened on Jan 31, 2024

View on GitHub
 (7 comments) (0 reactions) (0 assignees)Rust (35 forks)auto 404
feature/uhyve-interfacehelp wanted

Repository metrics

Stars
 (293 stars)
PR merge metrics
 (PR metrics pending)

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.

Contributor guide