Long-form writing on runtime, distributed systems, kernel internals, Go concurrency, memory models, eBPF, and assembly walkthroughs.
Blog

Attach GDB to a stock Ubuntu 6.8 x86-64 kernel in QEMU, set a breakpoint, and watch nothing happen. The kernel is running fine. The bug isn't in the code — it's that KASLR moved the kernel and your symbols didn't. How to fix it without a rebuild.
2026-09-07
4 min read
Blog

Step through a hand-written x86 bootloader in GDB, hit a far jump, and watch your function names turn to garbage. Nothing crashed — CS changed, and in real mode that moves every address out from under GDB's symbol table. Why it happens and how to keep symbols following you.
2026-09-07
5 min read
Blog

512 bytes, no operating system, no standard library, no memory management — BIOS drops you at 0x7c00 in 16-bit real mode and everything after that is yours to build. A hand-written Stage-1 MBR, line by line, and why the exercise surfaces every abstraction you normally stand on.
2026-09-07
5 min read
Blog

What a TLB miss, a cache miss and false sharing each cost the CPU, why top still reports 100% busy, and how to see them with perf stat and perf c2c. Two threads doing identical work ran in 841 ms or 4,284 ms depending only on how two fields sat in a struct.
2026-09-06
8 min read
Blog

The same lock-free C program runs clean on Intel for hours and fails on ARM64 in a minute. The source is identical. This is store→load reordering — why x86's TSO hides it, why ARM64 exposes it, and what a fence actually does — with a real litmus test and its numbers.
2026-09-06
9 min read
Blog

Every x86 CPU boots in 16-bit real mode and switches to protected mode in its first moments. That switch is a GDT, an IDT, one bit in CR0 and a far jump, and those two tables are where ring 0 vs ring 3 actually comes from. Walked through real bootloader assembly.
2026-09-06
7 min read
Blog

ja, jb, je, jl don't read your operands. They read bits in EFLAGS that some earlier instruction wrote — and it isn't always the cmp you think. Once you see that in GDB, reverse engineering and crash-dump triage stop being guesswork.
2026-09-06
6 min read
Blog

kprobe and fentry both hook kernel functions from eBPF, but they install differently, cost differently, and hand you arguments differently. A source-level comparison, grounded in a real eBPF project, plus why the choice is a production cost — not trivia.
2026-09-06
9 min read
Blog

Rebuild an ARM64 Linux kernel with Yocto, boot it in QEMU, and step through it in GDB — on a laptop, no hardware. The workflow is the easy part; the part nobody tells you is why GDB can't find your source and how to fix it.
2026-09-06
5 min read
Blog

Codex ships 43,591 lines of sandboxing across four platform backends, and treats enforcement and approval as two separate axes. Pi ships none and says so in its README. Both are defensible. What is not defensible is the assumption in between, where a dialog box gets mistaken for a boundary. A source-level look at what your coding agent can actually do to your machine.
2026-09-04
8 min read