Repository navigation
Releases
eBPF OS 0.1.0
eBPFOS release
eBPFOS is Linux 7.1.8 whose functions run as eBPF from boot. The build compiles
each C function to eBPF, runs the verifier and the JIT at build time, and links the
JIT output into the boot image in place of the native body. Applications can then
replace functions per scope (machine, process tree, cgroup, object) and roll back.
What the image is
aot.bzImage is the isolation configuration (networking, ext4, overlayfs, cgroups,
namespaces) of kernel commit c6426300d83284b1a41d6fc039ca20944912e017
(branch ebpfos/v7.1.8 of eunomia-bpf/ebpfos-linux), built with Ubuntu clang 18.1.3.
Its build records state:
-
31,692 C function definitions; 31,691 run as eBPF from boot, 1 stays native.
-
20,980 of them are verified by the kernel verifier, 10,711 are trusted (no proof checking).
-
The linked text (
.textand.init.text) holds 15,887,114 bytes without the 2 MiB
alignment gap after the entry code. 15,540,247 bytes (97.8%) are JIT output of
42,264 eBPF programs; 28,346 bytes (0.2%) are native assembly stubs (1,214 pieces:
1,149 static-call trampolines, entry and string-copy assembly, one 24-byte C function);
the rest is alignment padding. -
Bytes by tier (symbol sizes in the linked
aot.vmlinux; tiers per definition from the
2026-11-20 census, job 1802: 20,980 verified, 10,712 not verified, which the census does not
split further and which are counted as trusted; the one definition that stays native is in
that group). Shares are of the 15,887,114 occupied text bytes:Class Programs Bytes Share JIT of verified definitions 20,980 3,851,230 24.24% JIT of trusted definitions 10,711 6,922,562 43.57% JIT batch copies of verified definitions 3,697 1,396,617 8.79% JIT batch copies of trusted definitions 3,010 2,852,844 17.96% JIT helper programs without a census definition ( __wk_btf_*and others)3,838 516,692 3.25% Native text symbols (entry code, assembly stubs, the 24-byte C function) 1,317 33,512 0.21% A batch copy is a program named
<definition>__batch_N_entry_M, the callee body compiled into a
batch entry; it takes the tier of its base definition. Verified in total: 5,247,847 bytes (33.03%);
trusted in total: 9,775,406 bytes (61.53%). The JIT rows sum to 15,539,945 bytes (97.82%), 302 bytes
below the 15,540,247 of the build records. The native symbol sum is larger than the 28,346 bytes
of the build records because it also counts section markers. -
Also in the image: 22,039 native-instruction fragments inside the JIT bodies (symbols
.__bpf_native_*). Their size is not available: the symbols have size 0 and no end marker, so
the disassembly does not delimit them. -
This image is not the Native kernel:
native.bzImageis the same configuration compiled normally.
Assets
| File | Content |
|---|---|
ebpfos-x86_64.tar.gz |
Full bundle: both kernels, guest userspace, compiler helpers, component catalog. Used by ebpfos fetch. |
ebpfos-image-x86_64.tar.gz |
The kernel images only: aot.bzImage, native.bzImage, native.btf, kernel.config, initramfs.cpio.gz, LICENSE. |
ebpfos-source.tar.gz |
Corresponding source: this repository without archive/ and experiments/ (recorded run data, 25 GB, in the git history), the Linux tree at the pinned commit (kernel/), and configs/isolation-kernel.config, the resolved configuration of aot.bzImage. |
Boot it
Follow the README quick start (ebpfos fetch, then ebpfos vm --image aot). It needs an
x86-64 Linux host with /dev/kvm, QEMU, Python 3.12 and LLVM 18. The hello example
prints the selected worker's getpgid as 0, 63001, 0 and leaves the peer at 0.
Without the ebpfos command, unpack ebpfos-image-x86_64.tar.gz and run QEMU on it:
qemu-system-x86_64 -enable-kvm -cpu host -m 1024 -smp 2 -kernel aot.bzImage -initrd initramfs.cpio.gz -append "console=ttyS0" -nographicinitramfs.cpio.gz holds the BusyBox of the bundle's root file system and an /init that mounts
proc, sysfs, bpffs and cgroup2, prints the kernel version and a status line, and starts a shell
(poweroff -f stops the machine; QEMU exits with Ctrl-a x). Boot check, queue job 3298: the kernel
prints eBPFOS: Linux version 7.1.8+ and eBPFOS: JIT-compiled bpf_prog symbols in kallsyms: 139; bpffs mounted; cgroup2 mounted, uname -r in the shell answers 7.1.8+ and mount lists bpffs on
/sys/fs/bpf and cgroup2 on /sys/fs/cgroup.
Second image form: eBPF bytecode
The bytecode form boots native.bzImage (5,006,336 bytes, kernel c6426300d83284b1a41d6fc039ca20944912e017)
and loads the eBPF programs of the same 31,692 definitions through BPF_PROG_LOAD at run time: the running
kernel's verifier and JIT produce the machine code, and machine-wide entry links publish it. aot.bzImage
holds the same functions as JIT output linked at build time (6,685,696 bytes, 1,679,360 more than Native).
What exists as bytecode (04-isolation, build tree edit-loop-native, release bundle):
| Where | Content | Loadable |
|---|---|---|
catalog.json.gz (1,431,416,805 bytes) |
12,402 components (9,308 function, 3,094 operations), 15,332 entry points, 38,662,199 member records | none: component membership metadata, no eBPF object |
build tree inputs/prepared |
31,692 eBPF objects, one per definition: 933,959,184 bytes (281,512,857 bytes at gzip level 1); export receipt without failures | 31,692 |
| measurement 2026-11-20 (04-isolation) | 31,692 definitions; the build records 20,980 verified and 10,711 trusted; published and restored in the running AOT kernel: 29,094 (19,094 verified, 10,000 trusted); on the Native kernel through the machine-wide entry link: 29,109 | 29,094 / 29,109 |
The measurement publishes batches of about 1,700 definitions one batch at a time (19 guests); it never held all
definitions published together, and the ebpfos command had no whole-image mode. ebpfos vm --publish-image PLAN
is that mode: one Native guest, every shard loaded by image-link and kept published side by side, then the
command runs, then every shard is restored. Left out of the plan: 1,967 definitions that live only in init text
(no resident native body after boot). The six definitions that hung the Native kernel in the 2026-11 entry-link
measurement are not left out: their list (raw/live-hangs.txt) no longer exists.
Package for the bytecode form (python3 -m tools.release.bytecode): 29,725 objects (gzip level 1), 19 shard plans
and plan.json, 59,450 members and 271,521,809 bytes in all; 20,388 definitions request the verified tier and
9,337 the trusted tier (the newest verification census, verified-census-post1100-20261121T153927Z). The loader
image-link (2,569,424 bytes) and the guest userspace are in the release bundle already. A user downloads
native.bzImage (5.0 MB, in the bundle) and the plan (271.5 MB) instead of aot.bzImage (6.7 MB).
ebpfos --bundle "$BUNDLE" vm --image native --memory 7168 --idle-timeout 3600 --publish-image PLAN --command 'sh image-check.sh'
ebpfos --bundle "$BUNDLE" vm --image native --publish-image PLAN --dry-run # checks the plan, boots nothingApplication check on Native alone (four vCPUs): hello returns 0, 63001, 0; Redis 7.2.5 served 1,996,677
commands in 30 s under redis-benchmark -t set,get -c 20.
Licenses
The kernel and the repository are GPL-2.0-only (see LICENSE); ebpfos-source.tar.gz
is the corresponding source of the kernel images. The root file system in the bundle carries
BusyBox (GPL-2.0), Python 3.12 and clang/LLVM 18 from Ubuntu; their sources come with
apt source busybox python3.12 llvm-toolchain-18 on Ubuntu 24.04.
Rebuild the image
Build the pinned kernel with configs/isolation-kernel.config and the toolchain in
.devcontainer/Dockerfile, then follow tools/aot/README.md (make kernel-image RUNG=04-isolation).