aboutsummaryrefslogtreecommitdiffstats
path: root/net/socket.c
diff options
context:
space:
mode:
authorEdward Cree <ecree@solarflare.com>2017-07-21 14:37:34 +0100
committerDavid S. Miller <davem@davemloft.net>2017-07-24 14:02:55 -0700
commit9305706c2e808ae59f1eb201867f82f1ddf6d7a6 (patch)
treed90dcd6dc8670134778a891336b3b3c29f86c51a /net/socket.c
parentselftests/bpf: subtraction bounds test (diff)
downloadlinux-rng-9305706c2e808ae59f1eb201867f82f1ddf6d7a6.tar.xz
linux-rng-9305706c2e808ae59f1eb201867f82f1ddf6d7a6.zip
bpf/verifier: fix min/max handling in BPF_SUB
We have to subtract the src max from the dst min, and vice-versa, since (e.g.) the smallest result comes from the largest subtrahend. Fixes: 484611357c19 ("bpf: allow access into map value arrays") Signed-off-by: Edward Cree <ecree@solarflare.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions