Tags: aquasecurity/libbpfgo
Tags
build(deps): bump golang.org/x/sys from 0.14.0 to 0.15.0 in /helpers (#… …393) Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.14.0 to 0.15.0. - [Commits](golang/sys@v0.14.0...v0.15.0) --- updated-dependencies: - dependency-name: golang.org/x/sys dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
feat(map): Introduce GetMapsIDsByName Allow a user to get a list of maps IDs filtered by map name. Co-authored-by: Geyslan Gregório <[email protected]>
build(deps): bump actions/checkout from 3 to 4 (#376) Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Fix double-free in `NewModuleFromBufferArgs` (#327) In 0238ec3 the freeing of C strings was changed to use defers. This can cause a double-free, which in the best case it will produce a crash. The reason why this happens is that the memory address at `defer` time is captured for later execution. If `KConfigFilePath` is less than 3, it was being freed and set to NULL. Once the defer executes on function return, the same address we already freed will be passed again. We observed this while upgrading libbpfgo in Parca Agent (parca-dev/parca-agent#1599). Signed-off-by: Francisco Javier Honduvilla Coto <[email protected]>
chore: call bpf_object__open_mem from go This changes libbpfgo to call bpf_object__open_mem directly from go instead of doing this via a C wrapper. What this means is that we maintained opts creation in C, but the actual libbpf object open call is done in go. This creates two new functions in libbpfgo.h as helpers: - bpf_object_open_opts_new() - bpf_object_open_opts_free() Context: #304 Additionally, this commit enforces the use of defer and resolves a potential CKconfigPath leak when len(args.KConfigFilePath) is > 2.
Add explicit timeout to perf + ring buffer polling (#309) Right now it's hardcoded to 300ms which might not work for every use-case. Having it as a parameter allows users to decide their tradeoff between latency and overhead. Signed-off-by: Francisco Javier Honduvilla Coto <[email protected]>
logger_cb: remove default callbacks (#294) The logic related to filtering by callbacks must be a decision of the library consumers, as it is not possible to know which is the best strategy for each case. This also adds to the related selftest other example that shows how to filter using callbacks. Be warned that if filters are not defined via callbacks, all output is passed to logFallback() which outputs to stderr.
selftest: poc for multiple BPF objects that share a ringbuffer
PreviousNext