summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nft_fwd_netdev.c
diff options
context:
space:
mode:
authorKees Cook2018-05-30 21:17:56 +0200
committerPablo Neira Ayuso2018-06-01 09:47:42 +0200
commit7b7744e2aa93864b2a490fb3533e9417d21cadc0 (patch)
tree9bf5e9c52b653f9907ce72e729acda9dc255c639 /net/netfilter/nft_fwd_netdev.c
parentnetfilter: nf_flow_table: attach dst to skbs (diff)
downloadkernel-qcow2-linux-7b7744e2aa93864b2a490fb3533e9417d21cadc0.tar.gz
kernel-qcow2-linux-7b7744e2aa93864b2a490fb3533e9417d21cadc0.tar.xz
kernel-qcow2-linux-7b7744e2aa93864b2a490fb3533e9417d21cadc0.zip
netfilter: nfnetlink: Remove VLA usage
In the quest to remove all stack VLA usage from the kernel[1], this allocates the maximum size expected for all possible attrs and adds sanity-checks at both registration and usage to make sure nothing gets out of sync. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_fwd_netdev.c')
0 files changed, 0 insertions, 0 deletions