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

Validate specific atomic operation opcodes #614

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

hawkinsw
Copy link
Collaborator

The eBPF RFC specifies an enumerated list of valid "sub" opcodes for atomic operations. These subopcodes are stored in the imm field of the instruction. This patch adds support for validating that an atomic operation contains exactly one of the enumerated values in the RFC.

@hawkinsw hawkinsw requested a review from Alan-Jowett November 23, 2024 01:02
The eBPF RFC specifies an enumerated list of valid "sub" opcodes for
atomic operations. These subopcodes are stored in the imm field of the
instruction. This patch adds support for validating that an atomic
operation contains exactly one of the enumerated values in the RFC.

Signed-off-by: Will Hawkins <[email protected]>
@hawkinsw hawkinsw force-pushed the atomic_opcode_validate branch from 7636e6e to 3b77e0f Compare November 23, 2024 01:08
@coveralls
Copy link

Coverage Status

coverage: 79.23% (+0.03%) from 79.201%
when pulling 3b77e0f on hawkinsw:atomic_opcode_validate
into 859e35c on iovisor:main.

@Alan-Jowett Alan-Jowett merged commit d82c4f8 into iovisor:main Dec 2, 2024
51 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.

3 participants