OneLane: Reverse-Engineering Lost Updates in eBPF Per-CPU Counters Under Interrupt PressureExplore how non-atomic eBPF per-CPU counter updates can lose events under interrupt pressure through Linux kernel reverse engineering and JIT assembly46 min read·ravindu-priyankara.hashnode.dev1Nov 2
Reverse-Engineering Linux Kernel Crypto: From HMAC Key Preparation to AES Key MemoryReverse-engineering Linux kernel crypto to trace HMAC and AES key handling, inspect internal hash states, and investigate runtime key modification.44 min read·ravindu-priyankara.hashnode.dev1Oct 13
Reverse Engineering Linux's Dummy Kernel Module: Lessons from Binary to Kernel BehaviourLessons from reversing Linux's dummy kernel module using radare2, GDB and QEMU, covering relocations, callbacks, runtime analysis and more.7 min read·ravindu-priyankara.hashnode.devJul 28
Squeezing Bytes: How I Optimised an eBPF Driver in FalcoHow tracking down a packed struct alignment gap in Clang allowed me to eliminate 32 BPF instructions per invocation in Falco's modern BPF driver.9 min read·ravindu-priyankara.hashnode.devJun 20
The Case of the Disappearing eBPF Instruction: Inside Map FD Relocation and BPF_LD_IMM64Ever notice missing instructions in eBPF disassembly? Inside the deep-dive tracking of how libbpf handles placeholder FDs and dup3 binary surgery.18 min read·ravindu-priyankara.hashnode.devJun 8