OSDN Git Service

netfilter: x_tables: add counters allocation wrapper
authorFlorian Westphal <fw@strlen.de>
Tue, 27 Feb 2018 18:42:33 +0000 (19:42 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 5 Mar 2018 22:15:43 +0000 (23:15 +0100)
commitc84ca954ac9fa67a6ce27f91f01e4451c74fd8f6
tree3e3b78cb632b28a76a764889f71c8e77f1e440c9
parent9d5c12a7c08f67999772065afd50fb222072114e
netfilter: x_tables: add counters allocation wrapper

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>
include/linux/netfilter/x_tables.h
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c
net/netfilter/x_tables.c