---
title: "Why kernel modules hurt"
---

> Documentation Index
> Fetch the complete documentation index at: https://example.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Why kernel modules hurt

Historically, adding logic inside Linux meant writing a [loadable kernel module](https://example.com/ebpf-field-guide/glossary/#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

> **Watch out:** Operators rarely allow third-party kernel modules on production network hosts because a single bug takes down every workload on that server.

Source: https://example.com/ebpf-field-guide/core-architecture/kernel-and-vm/modules/index.mdx
