]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
netfilter: flowtable: skip offload setup if disabled
authorFlorian Westphal <fw@strlen.de>
Mon, 3 Feb 2020 12:06:18 +0000 (13:06 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 7 Feb 2020 14:53:32 +0000 (15:53 +0100)
commita7da92c2c8a1faf253a3b3e292fda6910deba540
treea897fe7b65546705dd6174b5d71aa49afb6e9971
parent8d0015a7ab76b8b1e89a3e5f5710a6e5103f2dd5
netfilter: flowtable: skip offload setup if disabled

nftables test case
tests/shell/testcases/flowtable/0001flowtable_0

results in a crash. After the refactor, if we leave early via
nf_flowtable_hw_offload(), then "struct flow_block_offload" is left
in an uninitialized state, but later users assume its initialised.

Fixes: a7965d58ddab02 ("netfilter: flowtable: add nf_flow_table_offload_cmd()")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_offload.c