Skip to content

JIT and bpf2c use different verifier options #4324

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Alan-Jowett
Copy link
Member

@Alan-Jowett Alan-Jowett commented Apr 4, 2025

Resolves: #4323

Description

JIT/Interpreter and the bpf2c path end up passing slightly different verifier options resulting in inconsistent behavior from the verifier. This change refactors the common

Testing

CI/CD

Documentation

No.

Installation

No.

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
@Alan-Jowett Alan-Jowett force-pushed the normalize_verifier_options branch from 0563be2 to 7a61e04 Compare April 7, 2025 17:53
@Alan-Jowett Alan-Jowett marked this pull request as draft April 7, 2025 19:44
dthaler
dthaler previously approved these changes Apr 7, 2025
Copy link
Collaborator

@dthaler dthaler left a comment

Choose a reason for hiding this comment

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

Logic looks good.

@Alan-Jowett
Copy link
Member Author

Closing this PR as the only difference between the two paths are what the verifier reports. For the JIT case the verifier runs a second time with different options to print more information.

@Alan-Jowett Alan-Jowett closed this Apr 8, 2025
@dthaler
Copy link
Collaborator

dthaler commented Apr 8, 2025

Closing this PR as the only difference between the two paths are what the verifier reports. For the JIT case the verifier runs a second time with different options to print more information.

Why close this? Shouldn't bpf2c also print more information? I'd think we'd want native mode to be as diagnosable as JIT mode.

@Alan-Jowett Alan-Jowett reopened this Apr 8, 2025
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
@Alan-Jowett
Copy link
Member Author

Originally closed the PR (and was going to create a more constrainted one) as it had unrelated changes that was causing test failures. Rather than create a new PR, I will just remove the unrelated changes to see if I can avoid the test failures and scope this down to just changing the default verifier options.

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
@Alan-Jowett Alan-Jowett force-pushed the normalize_verifier_options branch from 9205f3b to 62cf60e Compare April 8, 2025 17:32
@Alan-Jowett Alan-Jowett marked this pull request as ready for review April 16, 2025 17:45
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.

JIT/Interpreter and bpf2c pass different options to verifier
2 participants