Skip to content

Conversation

@harishankarv
Copy link
Contributor

When verifying branches that compare two registers, if we can determine that the possible value ranges of the two registers do not intersect based on their unsigned and signed min/max values and tnums, we can conclude that certain branch outcomes are impossible. This patch adds checks for intersection between the unsigned ranges/signed ranges and tnums of registers. If no intersection exists, we can prune the impossible branch.

@harishankarv harishankarv force-pushed the bpf-next branch 2 times, most recently from 38d6b91 to 348f10a Compare December 18, 2025 23:28
When verifying branches that compare two registers, if we can determine
that the possible value ranges of the two registers do not intersect
based on their unsigned and signed min/max values and tnums, we can
conclude that certain branch outcomes are impossible. This patch adds
checks for intersection between the unsigned ranges/signed ranges and
tnums of registers. If no intersection exists, we can prune the
impossible branch.

Signed-off-by: Harishankar Vishwanathan <harishankar.vishwanathan@gmail.com>
@kernel-patches-daemon-bpf kernel-patches-daemon-bpf bot force-pushed the bpf-next_base branch 2 times, most recently from 5007636 to 0ac68c9 Compare December 22, 2025 01:02
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.

1 participant