hermit-os/uhyve

Prevent hypercall handling from panicking

開放

#631 建立於 2024年1月31日

 (7 則留言) (0 個反應) (0 位負責人)Rust (35 個分叉)auto 404
feature/uhyve-interfacehelp wanted

倉庫指標

星標
 (293 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南