Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libbpf bump #324

Merged
merged 3 commits into from May 3, 2023
Merged

libbpf bump #324

merged 3 commits into from May 3, 2023

Conversation

rafaeldtinoco
Copy link
Contributor

commit 8b6fa9e (HEAD -> libbpf-bump, rafaeldtinoco/libbpf-bump)
Author: Rafael David Tinoco rafaeldtinoco@gmail.com
Date: Tue May 2 17:51:30 2023

selftest: fix set-attach test

After libbpf commit 3fd6eebb2d4 ("libbpf: disassociate section handler
on explicit bpf_program__set_type() call"):

 If user explicitly overrides programs's type with
 bpf_program__set_type() API call, we need to disassociate whatever
 SEC_DEF handler libbpf determined initially based on program's SEC()
 definition, as it's not goind to be valid anymore and could lead to
 crashes and/or confusing failures.

The eBPF fentry program macro should only have the "fentry" keyword.

commit eba93d9
Author: Rafael David Tinoco rafaeldtinoco@gmail.com
Date: Tue May 2 17:23:15 2023

selftest: fix cgroup-legacy selftest

commit c291411 (tests)
Author: Rafael David Tinoco rafaeldtinoco@gmail.com
Date: Tue May 2 16:31:19 2023

libbpf: bump to v1.2.0

@rafaeldtinoco rafaeldtinoco requested a review from geyslan May 2, 2023 20:53
@rafaeldtinoco rafaeldtinoco self-assigned this May 2, 2023
After commit d6e6286a12e7 ("libbpf: disassociate section handler on explicit
bpf_program__set_type() call"), bpf_program__set_type() will force cleanup
the program's SEC() definition.

The program type should only be set if it differs from the desired one:

  if (type != BPF_PROG_TYPE_UNSPEC && bpf_program__type(prog) != type)
    bpf_program__set_type(prog, type);
@rafaeldtinoco rafaeldtinoco merged commit 650fef1 into aquasecurity:main May 3, 2023
4 checks passed
@rafaeldtinoco rafaeldtinoco deleted the libbpf-bump branch May 3, 2023 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants