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

fix: probe bpf func #475

Merged
merged 2 commits into from
Jan 17, 2025
Merged

Conversation

rscampos
Copy link
Collaborator

@rscampos rscampos commented Jan 16, 2025

  • Improved BPFHelperIsSupported by enhancing error reporting to include detailed messages for unsupported helpers and unexpected errno values returned by libbpf;
  • Added logic to handle unexpected errno states and clarified support assumptions based on retC == 1 when running with capabilities.

geyslan
geyslan previously approved these changes Jan 16, 2025
Copy link
Member

@geyslan geyslan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@geyslan
Copy link
Member

geyslan commented Jan 16, 2025

As we discussed offline, it's better to return to origins and make the libbpfgo, mostly for this matter, return ret and errno as it is. Please provide comments about the findings related to libbpf and kernel. Tks!

@rscampos rscampos force-pushed the fix_prob_bpf_helper branch 4 times, most recently from 25ec2fb to ff87197 Compare January 17, 2025 13:36
@rscampos rscampos self-assigned this Jan 17, 2025
- Improved BPFHelperIsSupported by enhancing error reporting to include detailed
messages for unsupported helpers and unexpected errno values returned by libbpf;
- Added logic to handle unexpected errno states and clarified support assumptions
based on retC == 1 when running with capabilities.
- align the err msg return;
- remove one test case - the func helper is enabled for the type for
new kernels.
@rscampos rscampos force-pushed the fix_prob_bpf_helper branch from ff87197 to 9aead27 Compare January 17, 2025 14:03
@rscampos rscampos merged commit c0ac603 into aquasecurity:main Jan 17, 2025
23 checks passed
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.

2 participants