]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netfilter: nf_tables_offload: check for register data length mismatches
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 28 Oct 2019 14:07:06 +0000 (15:07 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 4 Nov 2019 17:31:17 +0000 (18:31 +0100)
commitde2a60522343a6cab998f61fd906eae445b19963
tree7371b190093334ef0c9475a51281e0138b6fe5e4
parent1204c70d9dcba31164f78ad5d8c88c42335d51f8
netfilter: nf_tables_offload: check for register data length mismatches

Make sure register data length does not mismatch immediate data length,
otherwise hit EOPNOTSUPP.

Fixes: c9626a2cbdb2 ("netfilter: nf_tables: add hardware offload support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_bitwise.c
net/netfilter/nft_cmp.c