A crazy thought
A crazy thought
Posted Jan 20, 2026 1:28 UTC (Tue) by Cyberax (✭ supporter ✭, #52523)In reply to: A crazy thought by aszs
Parent article: Task-level io_uring restrictions
> Anyway, you can't call malloc or free in bpf programs
You absolutely can: https://docs.ebpf.io/linux/kfuncs/bpf_arena_alloc_pages/ Here's a mandatory LWN article about it: https://lwn.net/Articles/961941/
> hat said, a WASM-to-BPF byte code transpiler would be awesome, i'm surprised no one has made one yet.
The transpiler is trivial, but the runtime environments are too different for it to be useful.
