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

features: fix HaveProgType(ebpf.Syscall) #471

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

rgo3
Copy link
Contributor

@rgo3 rgo3 commented Oct 29, 2021

BPF Syscall programs need to be sleepable which is enforced by the
verifier. So we need to set the correct program flags before executing
the feature probe.

Fixes #464.

Signed-off-by: Robin Gögge r.goegge@gmail.com

BPF Syscall programs need to be sleepable which is enforced by the
verifier. So we need to set the correct program flags before executing
the feature probe.

Fixes cilium#464.

Signed-off-by: Robin Gögge <r.goegge@gmail.com>
Copy link
Collaborator

@florianl florianl left a comment

Choose a reason for hiding this comment

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

works fine here 👍
sorry for adding the syscall prog type without thinking about the features tests 🙏

@rgo3
Copy link
Contributor Author

rgo3 commented Oct 30, 2021

No worries, when we added those tests we hoped they would just automatically fail when new prog types are added, forcing people to ensure the feature probe for that type also works. But if no CI kernel for that feature exists yet its skipped and one can get away without making sure the probes actually work. I think that's what happened here, even though you actually had thought about the feature tests and added the right kernel version to the test matrix.

@lmb lmb merged commit d09013c into cilium:master Nov 1, 2021
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.

features: fix HaveProgType(ebpf.Syscall)
3 participants