]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: x_tables: set module owner for icmp(6) matches
authorFlorian Westphal <fw@strlen.de>
Wed, 4 Jul 2018 18:25:32 +0000 (20:25 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 5 Jul 2018 09:45:11 +0000 (11:45 +0200)
commitdde85189a7cc717c564571b5fdf0802fab0c0723
treeb7ddb7061489c1845d195e1201c8e140ffe94a66
parentda4a399382f5f63ed8fda3eb3c24051349efd7c8
netfilter: x_tables: set module owner for icmp(6) matches

nft_compat relies on xt_request_find_match to increment
refcount of the module that provides the match/target.

The (builtin) icmp matches did't set the module owner so it
was possible to rmmod ip(6)tables while icmp extensions were still in use.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c