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

BPF: dotnet: make nibble map reading more compliant #142

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

fabled
Copy link
Contributor

@fabled fabled commented Aug 29, 2024

Remove the non-obvious reading past end-of-array to next member, and add modulo arithmetic to ensure that bpf verifier is happy.

fixes #141

Remove the non-obvious reading past end-of-array to next member,
and add modulo arithmetic to ensure that bpf verifier is happy.

fixes open-telemetry#141
@fabled fabled requested review from a team August 29, 2024 14:04
Copy link
Member

@christos68k christos68k left a comment

Choose a reason for hiding this comment

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

LGTM

@fabled fabled merged commit c96e126 into open-telemetry:main Aug 30, 2024
22 checks passed
florianl pushed a commit to florianl/opentelemetry-ebpf-profiler that referenced this pull request Aug 30, 2024
Remove the non-obvious reading past end-of-array to next member,
and add modulo arithmetic to ensure that bpf verifier is happy.

fixes open-telemetry#141
fabled added a commit to fabled/opentelemetry-ebpf-profiler that referenced this pull request Oct 25, 2024
As a follow up to open-telemetry#142, it was discovered that the clang generated
code is still not fully compliant with all supporter kernel verifiers,
and this will be caught in future with PR open-telemetry#205.

Simplify and rearrange the code sequence so that clang chooses
to generate code that is more verifier compliant.
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.

failed to load unwind_dotnet when make with debug
3 participants