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
{{ message }}
Repository navigation
kernel: persist plugin-compiled cwasm across boots #579
A raw-wasm program is compiled by the compiler plugin on every boot (aot-curl: 245–275 ms of compile per run, #430). The signed cwasm is discarded at power-off.
Scope
Compiled output is stored on the persistent filesystem keyed by the SHA-256 of the input wasm, the compiler plugin's identity and the cwasm target flags.
A stored cwasm the current key cannot verify is removed when the kernel comes up, not left to occupy storage until something trips over it: on a platform without confidential storage that is every cwasm the previous boot stored, and on a platform with it, every one stored under a key that can no longer be unsealed.
Done when
On a platform with confidential storage, a second boot runs the same raw-wasm program with no compile and with signature verification.
On a platform without it, the stored file is gone after the reboot and the program is compiled again.
A stored cwasm whose signature fails is gone after the next boot.
Activity