diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2016-06-10 22:19:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-11 04:00:57 +0300 |
commit | f7bd9e36ee4a4ce38e1cddd7effe6c0d9943285b (patch) | |
tree | 6d1c2d77f099680ce4bfcbe15a54a6b0ed77ff5f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | a70b506efe899dc8d650eafcc0b11fc9ee746627 (diff) | |
download | linux-f7bd9e36ee4a4ce38e1cddd7effe6c0d9943285b.tar.xz |
bpf: reject wrong sized filters earlier
Add a bpf_check_basics_ok() and reject filters that are of invalid
size much earlier, so we don't do any useless work such as invoking
bpf_prog_alloc(). Currently, rejection happens in bpf_check_classic()
only, but it's really unnecessarily late and they should be rejected
at earliest point. While at it, also clean up one bpf_prog_size() to
make it consistent with the remaining invocations.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions