netfilter: nf_tables: Don't allocate nft_rule_dump_ctx
authorPhil Sutter <phil@nwl.cc>
Fri, 29 Sep 2023 19:19:22 +0000 (21:19 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 10 Oct 2023 14:34:28 +0000 (16:34 +0200)
commit99ab9f84b85ec3eec099278bff61269ad0b078ce
treeabdc832e5dd436a92680ead78677e556bdca8e73
parent8194d599bc01bc6e89b14af436803cf90d0a8650
netfilter: nf_tables: Don't allocate nft_rule_dump_ctx

Since struct netlink_callback::args is not used by rule dumpers anymore,
use it to hold nft_rule_dump_ctx. Add a build-time check to make sure it
won't ever exceed the available space.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_tables_api.c