Skip to content
master
Go to file
Code

Latest commit

debug/elf doesn't seem to validate that section numbers are valid,
so we can trigger a crash here. Unfortunately I wasn't able to minimize
the crasher, so this change doesn't have an accompanying test.

Found using go-fuzz.
dc113ec

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time

readme.md

eBPF

PkgGoDev

eBPF is a pure Go library that provides utilities for loading, compiling, and debugging eBPF programs. It has minimal external dependencies and is intended to be used in long running processes.

  • asm contains a basic assembler.
  • link allows attaching eBPF to various hooks.
  • perf allows reading from a PERF_EVENT_ARRAY.
  • cmd/bpf2go allows embedding eBPF in Go.

The library is maintained by Cloudflare and Cilium. Feel free to join the libbpf-go channel on Slack.

Current status

The package is production ready, but the API is explicitly unstable right now. Expect to update your code if you want to follow along.

Requirements

  • A version of Go that is supported by upstream
  • Linux 4.9, 4.19 or 5.4 (versions in-between should work, but are not tested)

Useful resources

You can’t perform that action at this time.