Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Running eBPF After Application Exits: The Lifecycle of eBPF Programs

eBPF (Extended Berkeley Packet Filter) is a revolutionary technology in the Linux kernel that allows users to execute custom programs in kernel space without modifying the kernel source code or loading any kernel modules. This provides developers with great flexibility to observe, modify, and control the Linux system. This article introduces the Lifecycle of eBPF Programs, how to run eBPF…

This article provides an overview of the lifecycle of eBPF (Extended Berkeley Packet Filter) programs in the Linux kernel. It explains how eBPF programs are managed using file descriptors and reference counters, which allow them to persist even after the user-space process that created them has exited. The article also discusses the two-phase loading of eBPF programs, which involves creating maps and storing their file descriptors in the program.

When a program is attached to a hook, its reference counter is incremented, allowing it to remain alive as long as its reference counter is greater than zero. The article highlights the difference between global and local attachment points, and explains how the file descriptor-based interface provides auto-cleanup in case of user-space process failures.

Brief written by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Stop Trusting Default S3 Lifecycle Rules in Production

Default S3 lifecycle rules silently fail or overcharge because they ignore the 128 KB small-object floor, 30 to 180 day minimum storage durations, versioning's noncurrent versions, and incomplete…

  • Default S3 lifecycle rules can cause unexpected costs and data loss.
  • Default rules ignore nuances like small-object threshold and versioning.
  • Teams should review and adjust lifecycle rules for specific bucket needs.

More from Saturday, 28 November 2026 →