summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/b53
diff options
context:
space:
mode:
authorPiotr Krysiuk <piotras@gmail.com>2021-03-16 09:47:02 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-20 10:38:35 +0100
commit86eddd693daacc0c6746cd789569bd5481d2ea36 (patch)
tree1f407f29727409b02d4422e3d9569af0f31a74c1 /drivers/net/dsa/b53
parent087299234e6fa5d2e611df782602dbd9864957b0 (diff)
bpf: Add sanity check for upper ptr_limit
commit 1b1597e64e1a610c7a96710fc4717158e98a08b3 upstream. Given we know the max possible value of ptr_limit at the time of retrieving the latter, add basic assertions, so that the verifier can bail out if anything looks odd and reject the program. Nothing triggered this so far, but it also does not hurt to have these. Signed-off-by: Piotr Krysiuk <piotras@gmail.com> Co-developed-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/dsa/b53')
0 files changed, 0 insertions, 0 deletions