by riyakhanna1983 · 7y ago · 0 comments
There is another proposal that uses BTF to do the fixup at load (not compile) time, but that ends up having it's own complications.
If you were able to load bytecode directly, you’d skip this verification step.
(I’ve always thought VM runtimes should have signing keys, sign build artifacts—e.g. bytecode—as they create them, and then have the VM’s module loader check the signature. This way, you could still rely on build-time static verification for your security, while also being able to share compiled artifacts among any set of runtimes that trust one-another’s signing keys.)
cBPF was different, and only allowed you to jump forward (guaranteeing termination), but eBPF is a much more general VM.
You can construct non-turing-complete languages which all code can be proven, and that is the point the parent is making.