Skip to content

Why kernel modules hurt

Step 2 of 9Problem
BLAST RADIUS
whole host
PORTABILITY
fragile
SPEED
native
UPGRADE RISK
high
  • syscall / bpf() load
  • verified native exec
  • kernel event / hook
Kernel Space & eBPF VM, step 2 of 9

Historically, adding logic inside Linux meant writing a loadable kernel module (LKM) in C or waiting years for upstream kernel patches. One null pointer in an LKM panics the entire host.

Modules also tie you to exact kernel versions. Every security patch on RHEL or Ubuntu can break internal symbols and force a rebuild across your fleet.

What fails with LKMs

  • Bad pointer dereference → instant kernel panic
  • Minor kernel upgrade → broken out-of-tree build
  • Infinite loop in hook → hard CPU lockup

Type to search…

↑↓ navigate↵ selectEsc close