Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

cli flags: document a guest without a timeout may spin forever (#15002)

Pat Hickey1b1cba76edac
diff --git a/crates/cli-flags/src/lib.rs b/crates/cli-flags/src/lib.rs
index 5678c00cf6..20fb8b801b 100644
--- a/crates/cli-flags/src/lib.rs
+++ b/crates/cli-flags/src/lib.rs
@@ -446,7 +446,11 @@ wasmtime_option_group! {
/// useful for tracking down a backtrace of what is requesting so much
/// memory, for example.
pub trap_on_grow_failure: Option<bool>,
- /// Maximum execution time of wasm code before timing out (1, 2s, 100ms, etc)
+ /// Maximum execution time of wasm code before timing out (1, 2s, 100ms, etc).
+ ///
+ /// Note that when this option is not set, malicious wasm code may
+ /// cause the host process to become unresponsive to inputs including
+ /// SIGTERM.
pub timeout: Option<Duration>,
/// Configures support for all WebAssembly proposals implemented.
pub all_proposals: Option<bool>,