[PATCH net 0/2] bpf: fix verifier min/max handling in BPF_SUB

From: Edward Cree
Date: Fri Jul 21 2017 - 09:35:28 EST


I managed to come up with a test for the swapped bounds in BPF_SUB, so here
it is along with a patch that fixes it, separated out from my 'rewrite
everything' series so it can go to -stable.

Edward Cree (2):
selftests/bpf: subtraction bounds test
bpf/verifier: fix min/max handling in BPF_SUB

kernel/bpf/verifier.c | 21 +++++++++++++++------
tools/testing/selftests/bpf/test_verifier.c | 28 ++++++++++++++++++++++++++++
2 files changed, 43 insertions(+), 6 deletions(-)