Received: by 10.192.165.148 with SMTP id m20csp812427imm; Fri, 27 Apr 2018 07:56:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpqTZCCkdObnhtn7UV1t/1OzxKE6HD3grSzCHYkAPM3FolvTMj7g84UnukSbAshQtZtCNWH X-Received: by 10.98.90.135 with SMTP id o129mr2535432pfb.38.1524840969239; Fri, 27 Apr 2018 07:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524840969; cv=none; d=google.com; s=arc-20160816; b=bXjr7HeX88Iy2INER8C5wJXsls5NJKlAFxhL6aU33yUxUYt5Yw7HEMfeVaRQlOKabA o7rqkfn7MAWzNMKANm2OdWBV1RVB2GJeUWWj4B3qCosqOf1TwzIt5ZieowsyUPMQgo0/ pQ6eA8S+vYXaqczNYPeYR4iax0Aadm4RSWzum06tTcY9D6WV4uO14hAfidtz8qMKYwo7 l3IrrfN59PlXDtheobtN7zL5OMxbagdTg7m/T7jASU1gCdx5/12xl1B2cxDpVDBCMGrO 0aDajX/4bz5bo0xyqTWl5H+URFZYzgyrmJxcI+ldYhgzED9cdr7NrGH70F+AMEsQRukd A7XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=Cf+Pm9LfhKmqFtvRY8sxYbMjxt4ZGLWNBJbsdgICVcA=; b=gVFUCTMEpVXyWdEO/u4zLrdABR44zaub5vLd4JcmkUyJo3udK1ZnZCjL7YIpp+H1nC +M5dfc7yuxwqKS6WV2lzofccRsM2s5WDY9fcJnCBXv6HBwTvcXfWGrzpLm1BDjF5DHfm mAQr7jEhgxX/7zDxPM1KYS4cbK7PiSpCc11FZbpFTVamLfGcuH7YJR6T/kn1INHoI4u/ yvI+JaLqbhDPZFPMYgolBaYgVUq4N8MlT0Clk/X2kzYSLNPDZNNl81HFvdmolSCJYIYU rIoqww2YWkIihaGQkgV3cVcKbJcHAUxp4kes93mrKXDR+66fojVBV0NetlBeJXm3ijgG WTsA== ARC-Authentication-Results: i=1; mx.google.com; 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 v25si1413903pff.217.2018.04.27.07.55.55; Fri, 27 Apr 2018 07:56:09 -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; 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 S934285AbeD0Oyk (ORCPT + 99 others); Fri, 27 Apr 2018 10:54:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:52680 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934159AbeD0OGk (ORCPT ); Fri, 27 Apr 2018 10:06:40 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 3E3E121890; Fri, 27 Apr 2018 14:06:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3E3E121890 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Dumazet , Jon Maloy , Ying Xue , "David S. Miller" Subject: [PATCH 4.14 23/80] tipc: add policy for TIPC_NLA_NET_ADDR Date: Fri, 27 Apr 2018 15:58:16 +0200 Message-Id: <20180427135734.128970961@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427135732.928644313@linuxfoundation.org> References: <20180427135732.928644313@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Eric Dumazet [ Upstream commit ec518f21cb1a1b1f8a516499ea05c60299e04963 ] Before syzbot/KMSAN bites, add the missing policy for TIPC_NLA_NET_ADDR Fixes: 27c21416727a ("tipc: add net set to new netlink api") Signed-off-by: Eric Dumazet Cc: Jon Maloy Cc: Ying Xue Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/tipc/netlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/net/tipc/netlink.c +++ b/net/tipc/netlink.c @@ -79,7 +79,8 @@ const struct nla_policy tipc_nl_sock_pol const struct nla_policy tipc_nl_net_policy[TIPC_NLA_NET_MAX + 1] = { [TIPC_NLA_NET_UNSPEC] = { .type = NLA_UNSPEC }, - [TIPC_NLA_NET_ID] = { .type = NLA_U32 } + [TIPC_NLA_NET_ID] = { .type = NLA_U32 }, + [TIPC_NLA_NET_ADDR] = { .type = NLA_U32 }, }; const struct nla_policy tipc_nl_link_policy[TIPC_NLA_LINK_MAX + 1] = {