TGViewer
Linux - Reddit Linux - Reddit @r_linux · 1.04K subscribers
Post #42733 86
How eBPF lets Linux run your code inside the kernel

Had some free time last week so I made a visual explainer on how eBPF lets Linux run user-loaded code inside the kernel.

It follows a small program through Clang, the bpf() syscall, the verifier, JIT compilation, attach points, maps and ring buffers.

It also covers bpftrace, XDP, BPF LSM, sched_ext, and what happens when the verifier gets it wrong.

link for anyone interested

Feedback welcome :)

https://redd.it/1uzojc6
@r_linux
YouTube eBPF Looks Illegal Watch More Low Level Animated Deep Dives: https://youtube.com/playlist?list=PLMXMEKvLCzsI&si=TqIoC2dz4RkibIRk Linux lets you load your own code into the running kernel. That sounds illegal. Kernel code has the keys to the whole machine. One bad pointer…
More from @r_linux
  1. Sep 30, 2026AMD boosting AI/LLM performance for Radeon iGPUs as much as 18~23% with Linux 7.4 https://…
  2. Sep 24, 2026Canonical is speeding up Ubuntu's kernel updates because it's drowning in AI-discovered bu…
  3. Sep 11, 2026I realized something about Linux: Close to no reboots necessary! Under Win$lop I had to re…
  4. Aug 28, 2026postmarketOS Linux booted on iPhone 6S https://redd.it/1w0vkmn @r_linux
  5. Aug 28, 2026How did you first get introduced to linux? What is your story on how you became a linux us…
  6. Aug 27, 2026Linux currently has all time high market share at 7.5%, but what exactly happened in the l…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →