summaryrefslogtreecommitdiff
path: root/Documentation/bpf/bpf_devel_QA.rst
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2020-05-21 17:44:25 -0700
committerAlexei Starovoitov <ast@kernel.org>2020-05-21 17:47:33 -0700
commit29ae90d221755c7ddb3b7e4de2a73f76a4fdd500 (patch)
tree26ac9a5812fa137c7ba21cf91a1f083ba39dbd67 /Documentation/bpf/bpf_devel_QA.rst
parent79917b242c3fe0d89e4752bc25ffef4574c2194b (diff)
parentd844a71bff0fd899146e5981ec44b618afd17d83 (diff)
Merge branch 'improve-branch_taken'
John Fastabend says: ==================== This series adds logic to the verifier to handle the case where a pointer is known to be non-null but then the verifier encountesr a instruction, such as 'if ptr == 0 goto X' or 'if ptr != 0 goto X', where the pointer is compared against 0. Because the verifier tracks if a pointer may be null in many cases we can improve the branch tracking by following the case known to be true. The first patch adds the verifier logic and patches 2-4 add the test cases. v1->v2: fix verifier logic to return -1 indicating both paths must still be walked if value is not zero. Move mark_precision skip for this case into caller of mark_precision to ensure mark_precision can still catch other misuses. And add PTR_TYPE_BTF_ID to our list of supported types. Finally add one more test to catch the value not equal zero case. Thanks to Andrii for original review. Also fixed up commit messages hopefully its better now. ==================== Acked-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'Documentation/bpf/bpf_devel_QA.rst')
0 files changed, 0 insertions, 0 deletions