You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update cargo hash in flake.nix
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Remove allocations in panic handler by formatting panic message
using a new FixedStringBuf type backed by a static mut array.
Adds a test to verify that StackOverflow no longer occurs on OOM panic
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Clear buffer before recursive panics
Add some docstrings
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Update cargoHash in flake.nix
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Remove unused imports
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Add copyright header to fixed_buf.rrs
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Call abort_with_code_and_message directly in case of format failure in panic handler to avoid any possible recursive panic
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Update src/hyperlight_host/tests/integration_test.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Adam Perlin <adamp@nanosoft.com>
* Update src/tests/rust_guests/simpleguest/src/main.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Adam Perlin <adamp@nanosoft.com>
* Make FixedBuf take ownership of underlying byte slice
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Apply cargo fmt
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Remove unused import
Signed-off-by: adamperlin <adamp@nanosoft.com>
* 1. Add vec allocation after alloc::alloc failure to ensure panic in
integration test
2. Resolve clippy errors
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Use heapless crate instead of custom fixed string buffer
for panic string formatting
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Downgrade heapless to 0.8.0 to fix cargo crash
Signed-off-by: adamperlin <adamp@nanosoft.com>
* apply cargo fmt
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Remove whitespace in panic handler and rename test function in
simpleguest
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Write null terminator as part of initial panic message format
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Stack allocate panic message buffer to avoid use of mutex on static
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Increase panic buffer size and add description to format error message
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Create an fmt::Write implementation that writes formatted string to port-based io directly to stream
error messages to the host and avoid needing a fixed-size buffer in the
panic handler.
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Remove heapless dependency
Signed-off-by: adamperlin <adamp@nanosoft.com>
* fmt-apply
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Remove unnecessary unsafe in write_abort
Signed-off-by: adamperlin <adamp@nanosoft.com>
* Update src/hyperlight_guest/src/exit.rs
Co-authored-by: Dan Chiarlone <danilochiarlone@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
---------
Signed-off-by: adamperlin <adamp@nanosoft.com>
Signed-off-by: Adam Perlin <adamp@nanosoft.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: James Sturtevant <jsturtevant@gmail.com>
Co-authored-by: Dan Chiarlone <danilochiarlone@gmail.com>
0 commit comments