diff options
author | Kees Cook <[email protected]> | 2014-06-18 15:34:57 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2014-06-18 17:04:15 -0700 |
commit | 6f9a093b66ce7cacc110d8737c03686e80ecfda6 (patch) | |
tree | 5a53f18d497fc955d613e8aa1d6aee50a5e47fa8 /net/lapb/lapb_timer.c | |
parent | ff5e92c1affe7166b3f6e7073e648ed65a6e2e59 (diff) |
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 <[email protected]>
Cc: [email protected] # v3.15+
Acked-by: Daniel Borkmann <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions