A crazy thought
A crazy thought
Posted Jan 20, 2026 3:59 UTC (Tue) by aszs (subscriber, #50252)In reply to: A crazy thought by Cyberax
Parent article: Task-level io_uring restrictions
> 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/
Sure, there's lots of ways to directly and indirectly allocate memory through bpf apis. But those pointers are tracked by the verifier to prevent unsafe access (use after free, pointer arithmetic, etc.). The wasm bytecode verifier doesn't do this, so any theoretical in-kernel wasm program couldn't safely access kernel memory directly.
