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>
Fri, 20 Mar 2020 09:54:19 +0000 (10:54 +0100)
commita9755e81b69b83ddba3206cf51207fabdca4f538
treecf22d98a079fbca1ee4b9f24de1cb10f2b7d4c95
parent94d289a9e813b6b6cdb9c0255cb686d1b09a2284
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