netfilter: x_tables: add counters allocation wrapper

commit c84ca954ac upstream.

allows to have size checks in a single spot.
This is supposed to reduce oom situations when fuzz-testing xtables.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Florian Westphal 2018-02-27 19:42:33 +01:00 • committed by Greg Kroah-Hartman
commit 82b68ecde5
5 changed files with 19 additions and 3 deletions