bpf: fix bug in eBPF verifier
authorAlexei Starovoitov <ast@plumgrid.com>
Mon, 20 Oct 2014 21:54:57 +0000 (14:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Oct 2014 01:43:46 +0000 (21:43 -0400)
commit32bf08a6257b9c7380dcd040af3c0858eee3ef05
treeb5928993937cb9bc095f6c3e0393eb63f6471308
parent78fd1d0ab072d4d9b5f0b7c14a1516665170b565
bpf: fix bug in eBPF verifier

while comparing for verifier state equivalency the comparison
was missing a check for uninitialized register.
Make sure it does so and add a testcase.

Fixes: f1bca824dabb ("bpf: add search pruning optimization to verifier")
Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/verifier.c
samples/bpf/test_verifier.c