diff options
author | Kees Cook <keescook@chromium.org> | 2014-06-18 15:34:57 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-18 17:04:15 -0700 |
commit | 6f9a093b66ce7cacc110d8737c03686e80ecfda6 (patch) | |
tree | 5a53f18d497fc955d613e8aa1d6aee50a5e47fa8 /Makefile | |
parent | ff5e92c1affe7166b3f6e7073e648ed65a6e2e59 (diff) | |
download | linux-6f9a093b66ce7cacc110d8737c03686e80ecfda6.tar.bz2 |
net: filter: fix upper BPF instruction limit
The original checks (via sk_chk_filter) for instruction count uses ">",
not ">=", so changing this in sk_convert_filter has the potential to break
existing seccomp filters that used exactly BPF_MAXINSNS many instructions.
Fixes: bd4cf0ed331a ("net: filter: rework/optimize internal BPF interpreter's instruction set")
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: stable@vger.kernel.org # v3.15+
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions