A crazy thought
A crazy thought
Posted Jan 20, 2026 14:13 UTC (Tue) by aszs (subscriber, #50252)In reply to: A crazy thought by Cyberax
Parent article: Task-level io_uring restrictions
my first comment:
"WASM prevents code from accessing memory outside its sandbox but it doesn't provide memory safety within its sandbox. To provide safety guarantees similar to BPF you would need to make some pretty big changes to WASM. For example, see https://arxiv.org/abs/2208.13583"
We are literally going in circles. How would your in-kernel wasm jit handle the task_struct pointer returned by bpf_get_current_task_btf()? Or modifying xdp packets with apis like https://docs.ebpf.io/linux/helper-function/bpf_xdp_adjust... And do stuff like that safely without overhead?
