From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC5E5C10F29 for ; Tue, 17 Mar 2020 11:21:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A54002051A for ; Tue, 17 Mar 2020 11:21:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584444062; bh=l+SslzW3aQwnBAb6lpZwBPLpDvnhkZu8HaV802HbA1M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=E0d0Hpfm/QMsZz8ovcosEi8csrjhx8tREgH1BM/uqwUT3QcISyer3BSq4BNnKYmTF 01nuKWWQdNaensbIpnZVhhJSQVl3K7r0S+A7JQ5TUyNTADSZvcvIBCpy5u8jCKCGON phRYbxvcu6ICx/mUi8apn1r2R63FluiswfUUh5hU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727015AbgCQK7o (ORCPT ); Tue, 17 Mar 2020 06:59:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:38292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727492AbgCQK7l (ORCPT ); Tue, 17 Mar 2020 06:59:41 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C1F7E20719; Tue, 17 Mar 2020 10:59:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584442781; bh=l+SslzW3aQwnBAb6lpZwBPLpDvnhkZu8HaV802HbA1M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u93NxWjgwz+2IKJN7s747Jdb/flRFEXmkjfp+YWEQTkYkX+sxTKIHO2dWEI1BZFya NdncF+8LJQJYQYly1XVWconnGkD6r+x9kwKCT6uzbWfIZivvHjmUxV5j1rQ2E/3YD4 NRUCw2WTICoHlnOohh7sD+kQD5Co1da2pXkMzGDA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jakub Kicinski , Pablo Neira Ayuso Subject: [PATCH 4.19 80/89] netfilter: nft_payload: add missing attribute validation for payload csum flags Date: Tue, 17 Mar 2020 11:55:29 +0100 Message-Id: <20200317103309.288976534@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200317103259.744774526@linuxfoundation.org> References: <20200317103259.744774526@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jakub Kicinski 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 Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- net/netfilter/nft_payload.c | 1 + 1 file changed, 1 insertion(+) --- a/net/netfilter/nft_payload.c +++ b/net/netfilter/nft_payload.c @@ -121,6 +121,7 @@ static const struct nla_policy nft_paylo [NFTA_PAYLOAD_LEN] = { .type = NLA_U32 }, [NFTA_PAYLOAD_CSUM_TYPE] = { .type = NLA_U32 }, [NFTA_PAYLOAD_CSUM_OFFSET] = { .type = NLA_U32 }, + [NFTA_PAYLOAD_CSUM_FLAGS] = { .type = NLA_U32 }, }; static int nft_payload_init(const struct nft_ctx *ctx,