diff options
author | Piotr Krysiuk <piotras@gmail.com> | 2021-03-16 11:47:02 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-20 12:43:43 +0300 |
commit | 1010f17aaa78837bfe411aeb89343e648fb79f60 (patch) | |
tree | 21724299dd2924f2a2692946340a8ac1b5303a0b /Makefile | |
parent | 6a3504bf4006dd903eac93d37cdbad45726272b1 (diff) | |
download | linux-1010f17aaa78837bfe411aeb89343e648fb79f60.tar.xz |
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 'Makefile')
0 files changed, 0 insertions, 0 deletions