Skip to content

Conversation

@dthaler
Copy link
Contributor

@dthaler dthaler commented Jan 26, 2024

The BPF ISA specification does not define them, and just says "these instructions are deprecated and should no longer be used". To comply with that, this PR lets the platform specify whether they are supported. (ebpf-for-windows for example doesn't support them so it's important to fail verification.)

This PR also adds some YAML tests for the deprecated packet instructions.

@dthaler dthaler marked this pull request as draft January 26, 2024 03:42
@dthaler dthaler force-pushed the legacy branch 3 times, most recently from 8762573 to 9cd25f8 Compare January 26, 2024 20:21
@coveralls
Copy link

coveralls commented Jan 26, 2024

Coverage Status

coverage: 90.13% (+0.1%) from 90.029%
when pulling 97e076a on dthaler:legacy
into 2567b30 on vbpf:main.

@dthaler dthaler marked this pull request as ready for review January 26, 2024 21:49
The BPF ISA specification does not define them, and just says
"these instructions are deprecated and should no longer be used".
To comply with that, this PR disables support for legacy packet access
instructions by default.

If some other project depends on them, options.legacy can be
set to true.

Signed-off-by: Dave Thaler <[email protected]>
Signed-off-by: Dave Thaler <[email protected]>
Signed-off-by: Dave Thaler <[email protected]>
dthaler added a commit to dthaler/ebpf-for-windows that referenced this pull request Feb 4, 2024
Changes to match latest draft-ietf-bpf-isa

Also correct legacy packet instruction lines to show that PREVAIL
does support them.  vbpf/prevail#577
will update the verifier so make such support a platform specific
property but that hasn't been merged yet so this PR reflects
current state.

Signed-off-by: Dave Thaler <[email protected]>
dthaler added a commit to dthaler/ebpf-for-windows that referenced this pull request Feb 4, 2024
Changes to match latest draft-ietf-bpf-isa

Also correct legacy packet instruction lines to show that PREVAIL
does support them.  vbpf/prevail#577
will update the verifier so make such support a platform specific
property but that hasn't been merged yet so this PR reflects
current state.

Signed-off-by: Dave Thaler <[email protected]>
github-merge-queue bot pushed a commit to microsoft/ebpf-for-windows that referenced this pull request Feb 9, 2024
Changes to match latest draft-ietf-bpf-isa

Also correct legacy packet instruction lines to show that PREVAIL
does support them.  vbpf/prevail#577
will update the verifier so make such support a platform specific
property but that hasn't been merged yet so this PR reflects
current state.

Signed-off-by: Dave Thaler <[email protected]>
Copy link
Collaborator

@elazarg elazarg left a comment

Choose a reason for hiding this comment

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

Just a couple of grammatical comments

@dthaler
Copy link
Contributor Author

dthaler commented Feb 16, 2024

@elazarg I accepted grammar suggestions

@elazarg elazarg merged commit 1056586 into vbpf:main Feb 18, 2024
@dthaler dthaler deleted the legacy branch February 19, 2024 07:52
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.

3 participants