eBPF on Windows, Today
Part 16 of a series on eBPF: eBPF for Windows v1.8.0, released yesterday, on the same Hyper-V VM as Parts 7 and 12. The bind counter comes back a third time on the Linux-named cgroup/bind4 hook, with a global variable …
Part 16 of a series on eBPF: eBPF for Windows v1.8.0, released yesterday, on the same Hyper-V VM as Parts 7 and 12. The bind counter comes back a third time on the Linux-named cgroup/bind4 hook, with a global variable …
Part 15 of a series on eBPF: the trust question under every earlier part. On Linux 6.18: loading with capabilities instead of root, delegating BPF to a user namespace with a token, why a verified program is not an …
Part 14 of a series on eBPF: struct_ops, the mechanism that lets BPF programs fill in a kernel table of function pointers, first as a TCP congestion control and then as a whole CPU scheduler under sched_ext in Linux …
Part 13 of a series on eBPF: how BPF went from fixed-size map values to memory it manages itself, with the verifier's guarantees intact. On Linux 6.10: kernel pointers kept in maps, objects a program allocates and frees, …
Part 12 of a series on eBPF: eBPF for Windows v0.16.0, eighteen months after Part 7. The bind counter comes back with BTF maps and an atomic add, gets built into a signed native driver, and survives Memory Integrity …
Part 11 of a series on eBPF: the networking hooks after XDP and classic tc, on Linux 6.7. tcx and its multi-program API, where programs on a device have an owner, an order and a revision number; netkit, the …
Part 10 of a series on eBPF: from watching to deciding. The Linux Security Module hooks, BPF programs that sit on them and return -EPERM, a tracepoint fooled by a thread rewriting a path, an exec and connect policy taken …
Part 9 of a series on eBPF: kprobes, kretprobes, tracepoints, raw tracepoints, fentry and fexit, kprobe-multi, uprobes and USDT, all attached to the same call on Linux 6.2 and timed against each other; what each one does …
Part 8 of a series on eBPF: XDP and tc. The Linux receive path stage by stage and what each stage costs; one UDP port filter written for XDP and for tc, parsed under the verifier's bounds checks and attached five ways; …
Part 7 of a series on eBPF: eBPF for Windows v0.5.0, installed in a Hyper-V VM and taken apart. A bind-hook program counts socket binds per process, the PREVAIL verifier rejects the same missing NULL check the Linux …
Part 6 of a series on eBPF: why a BPF program built against one kernel's headers reads garbage on another, and how BTF and CO-RE fix it. One object file, built on Ubuntu 22.04 with libbpf 1.0, run unchanged on Linux …
Part 5 of a series on eBPF: the map types of Linux 5.19, each with a small program run against it. What a map costs and who pays, what the verifier does to a lookup, why per-CPU maps exist, how an LRU forgets, and the …
Part 4 of a series on eBPF: how the Linux verifier decides whether a program may run, read from 5.15's verifier.c. The control-flow pass, the walk over every path with typed registers, tristate numbers and range …
Part 3 of a series on eBPF: one execve() counter written for bpftrace, for BCC, in C with libbpf and in Go with cilium/ebpf, then measured on a stock Ubuntu 22.04 for start-up time, memory and what each needs installed. …
Part 2 of a series on eBPF: the instruction set from the bottom up. The 216 bytes clang wrote for Part 1's counter, read field by field; the eleven registers and the calling convention; how a helper is called by number; …
Part 1 of a series on eBPF: what it is, where it came from, and one 27-instruction program that counts every process a stock Ubuntu 22.04 kernel starts. Written as a bpftrace one-liner and in C with libbpf, then followed …