Skip to content
Commit 0a58a65c authored by Daniel Borkmann's avatar Daniel Borkmann
Browse files

Merge branch 'bpf-ptrs-beyond-pkt-end'



Alexei Starovoitov says:

====================
v1->v2:
- removed set-but-unused variable.
- added Jiri's Tested-by.

In some cases LLVM uses the knowledge that branch is taken to optimze the code
which causes the verifier to reject valid programs.
Teach the verifier to recognize that
r1 = skb->data;
r1 += 10;
r2 = skb->data_end;
if (r1 > r2) {
  here r1 points beyond packet_end and subsequent
  if (r1 > r2) // always evaluates to "true".
}
====================

Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parents c3653879 cb62d340
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment