Received: by 10.192.165.148 with SMTP id m20csp815591imm; Fri, 27 Apr 2018 07:59:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr6LoX6OzGoKJx4bBh89XP/7vCMXcL8wEH+uMjPNhfzNi4wqqiuvTlAIs4SiqevJpPSh4Cr X-Received: by 2002:a17:902:bc48:: with SMTP id t8-v6mr2613846plz.133.1524841181722; Fri, 27 Apr 2018 07:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524841181; cv=none; d=google.com; s=arc-20160816; b=j95rbWgwzaptTL5L63Q/CQRGWax70OwOmpBTD3VLRwwJAvKo3ttmO8TIEFaicm7cLM +U/A/qSRe8GQTJqigHuJ4J6saTw6d6AGEbM9OrKrNz8jZKxLmZHUobA1KsduchUzpSC3 rgo9PFrkImPgkuBJPcSihvPDSqKIkmz6VeU4KWbR+DR2dwZl+ANGkPC/yN6BDBLpPxHJ wNNJ5BjvYYLAggArT8eRbsP2ASRBj/e0tymrDDeq/vxqOuPpTjr4pdQqNLxLv9bPDThM L9pe8zmVF+w4V+A2mGQY9kv7tFta0lVgawOCdPaayqJMObH7Q9f5DNiPG/vLz24iZJ1j PNRw== 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=mgjFfhGTzJud4lpMFjB+fXSN+3rxt/u8oNwKyAdvOqI=; b=oRjEvSvDbMx7KC2U3tHM62bLk6karcZG1mUMxfVdXX6EakBM60GV+eNtbljOKedRkB tN8m++2qL2/MHqDk+XuNCfwyPDuMDLGVpfSjinrfOGT54RoCKkOq38PqdUOwAmIhxacN pfdIkrdeHCrqrjXYFEEOZUVe7GkwbxoQY+dYi/OQtPz5NjsbKCmnCVvpTuqFhYh0uniG zBtOSwl9P4t9SkeIGgO5agT37owz8GnH+BYRjjS9MemXE7ud8lSzBIqJH+IaV7fIYFEZ Eh8l+sKg+AzgOW+ukwJOrAqRzq6IO4BK7vkbNrjNWI6SX1qj3iLu0fWpPU64czzHBjG7 B3NQ== 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 b3-v6si1383109plc.63.2018.04.27.07.59.27; Fri, 27 Apr 2018 07:59:41 -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 S934035AbeD0OGA (ORCPT + 99 others); Fri, 27 Apr 2018 10:06:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:52012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933699AbeD0OFv (ORCPT ); Fri, 27 Apr 2018 10:05:51 -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 6BB2E21890; Fri, 27 Apr 2018 14:05:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6BB2E21890 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.9 56/74] tipc: add policy for TIPC_NLA_NET_ADDR Date: Fri, 27 Apr 2018 15:58:46 +0200 Message-Id: <20180427135712.254938417@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427135709.899303463@linuxfoundation.org> References: <20180427135709.899303463@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.9-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] = {