Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp659565ybg; Thu, 19 Mar 2020 06:33:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs+vGyll/CqySWYLTq7j/VG+MOeVNinbG/j6fTuC/l0v4c1HUP4OdWyLTEL+/sZdRhv6ric X-Received: by 2002:a05:6830:2091:: with SMTP id y17mr2439918otq.206.1584624818820; Thu, 19 Mar 2020 06:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584624818; cv=none; d=google.com; s=arc-20160816; b=qLVLB9Bf8f9kVasd0j4P33106m6HeD8OvnaMTnB0sfR9SxfuPRI0z8wZ8ghGxMIlek XlB+HMQ9+/ac2/jAjZQ9G4kOgvEATQSDYOaysKLjCMLdrF0BbEfDWisGu29kY1y9ViBJ 6vqJGCgAbt19lmFtLLoh3ofudDEJ67l/HWJLYGTv9brsoZ1oDCI4w2SLpF6kzK+YtzLX qkVw/JFcDtwI8sfd9X7Bh7oOIkmmfsq5hOib+2GwfZdkKve5aT/FOLe6ekuLF9yQbUYV 5HbaS8YFhKO3oSOVidwaW0mtwjgL9rrCDI2S2XQszwsRzEx9bE7B+iM60tpMbj9nYDmd 4mJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qA0tRT56RtWaGWHE8OXJL4GWrhYlQkuNqgkxUQ3G+mE=; b=OOX84D3q+FXna2pLK3cr/9bZ8jno74OSB1gyudAN+df2fdRegy9NHAJTDTvBhp3ROQ RUyRZvXknQlHrmf+82HR+k0UMtZuJeJq0oAvJ/vaIWdQ3K4kwHuVVwXRfA0Wioh7Gomq mNv4BzkqiQ+YjeNIzZ8gIN7nJp0F6P/6DKP7L5AVtpty3twkGKWJlO01d3D9Ju+bOhYA DggKZux8vqmlPPNg4BixjCghA12Ox36XzWae+0bLYkrKNYl6gCDTI6Guq8xi5nr7Sr7u V1UJaTN/SltG50nehUcnMiyV8UNV/h+kfVqPvcV01N5q2u4w1QbPHMbMZwntl0KiKlIf IqpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IYPGSFcy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a19si919370oic.227.2020.03.19.06.33.25; Thu, 19 Mar 2020 06:33:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IYPGSFcy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727828AbgCSNb7 (ORCPT + 99 others); Thu, 19 Mar 2020 09:31:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:37410 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727556AbgCSNQt (ORCPT ); Thu, 19 Mar 2020 09:16:49 -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 98815206D7; Thu, 19 Mar 2020 13:16:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584623809; bh=l+SslzW3aQwnBAb6lpZwBPLpDvnhkZu8HaV802HbA1M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IYPGSFcyhB0ZO+OPihtN+/Gn91CFf/CYmspp5qkvT9+zzViuJROEXd0QPxpXgaFnA DKo3lPuSYHvFNGQc9nCTCc38L2g6zZFe0mQ0km/4RfM7ziMEa5CHziltA7hYsXzPsY dpRwoNdvWSJL3zAqiZ0xbMggzaxDWTq9P9TIvoA0= 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.14 60/99] netfilter: nft_payload: add missing attribute validation for payload csum flags Date: Thu, 19 Mar 2020 14:03:38 +0100 Message-Id: <20200319123959.844990842@linuxfoundation.org> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200319123941.630731708@linuxfoundation.org> References: <20200319123941.630731708@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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,