fix(worker): security audit of R0 — no core dumps, tkill/tgkill limited to SIGABRT on self, mmap without PROT_EXEC, Broken outcome for a broken child environment, frame vs canvas check, unsafe denied with local allows, sandbox tests and derivation on the release profile (syscall marker); wasm proof exports behind a feature; ci: release-images hardened (typed input via env, advisories gate, ephemeral builder, env secrets + logout, ref gate, pinned checkout)
This commit is contained in:
1 parent
9d3e0294e2
commit
11813f5560
14 files changed
+293
-58
No files matched your search
@@ -19,17 +19,20 @@ pub fn call(op: &str, input: &str) -> String {
|
||||
|
||||
/// R0 proof: on wasm32 a panic is a trap (panic = abort), reaching JavaScript as a
|
||||
/// `WebAssembly.RuntimeError`; the caller re-instantiates the module.
|
||||
#[cfg(feature = "proofs")]
|
||||
#[wasm_bindgen]
|
||||
pub fn panic_for_test() {
|
||||
panic!("deliberate panic for the R0 proof");
|
||||
}
|
||||
|
||||
/// R0 proof: exhausting the shadow stack traps instead of corrupting memory.
|
||||
#[cfg(feature = "proofs")]
|
||||
#[wasm_bindgen]
|
||||
pub fn recurse_for_test(depth: u32) -> u32 {
|
||||
recurse(depth)
|
||||
}
|
||||
|
||||
#[cfg(feature = "proofs")]
|
||||
#[inline(never)]
|
||||
fn recurse(depth: u32) -> u32 {
|
||||
let mut frame = [depth; 32];
|
||||
|
||||
Reference in new issue
Block a user