netfilter: nft_payload: add missing attribute validation for payload csum flags
authorJakub Kicinski <kuba@kernel.org>
Tue, 3 Mar 2020 05:08:32 +0000 (21:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:14:24 +0000 (07:14 +0100)
commit64d43185eba6d61467db53ca026fdeb66fe78646
treebfd074a0d64f284b39f53ad1e4dcabeec55f08ec
parent5b425d389ed2627aa04739a076b9da9a9adaad9e
netfilter: nft_payload: add missing attribute validation for payload csum flags

commit 9d6effb2f1523eb84516e44213c00f2fd9e6afff upstream.

Add missing attribute validation for NFTA_PAYLOAD_CSUM_FLAGS
to the netlink policy.

Fixes: 1814096980bb ("netfilter: nft_payload: layer 4 checksum adjustment for pseudoheader fields")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nft_payload.c