Open
Conversation
When starting unixdump, BPF verifier complains about invalid read from stack: 177: (85) call bpf_perf_event_output#25 invalid indirect read from stack off -208+35 size 208 This is because struct notify_t object that we allocate on stack might not be initialized. See similar issue description at: iovisor/bcc#2623 (comment) Zero the data allocated on stack that we pass to bpf_perf_event_output(). Observed with: - linux 5.10.14 - bcc 0.18.0
When starting unixdump, BPF verifier complains about unbounded access: 739: (85) call bpf_probe_read#4 … R2 unbounded memory access, use 'var &= const' or 'if (var < const)' Follow the verifier suggestion, and add a redundant check for the upper bound of the offset passed to bpf_probe_read(). Observed with: - linux 5.10.18 - bcc 0.16.17
|
I think the memset one is now done through "notify_memset" added in 7ebb858 . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please see the individual commits for the description of errors encountered when trying to use
unixdumpon Linux 5.10.