Received: by 10.192.165.148 with SMTP id m20csp788104imm; Fri, 27 Apr 2018 07:32:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpEdMKaLYWudFHr/XJix//24rMQciNR7wm1DAGCxgmefsXpWX6SN7AnnkXhy/dMZg0UOsx9 X-Received: by 2002:a63:aa48:: with SMTP id x8-v6mr2268987pgo.398.1524839520780; Fri, 27 Apr 2018 07:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524839520; cv=none; d=google.com; s=arc-20160816; b=AVmwUn5xnYjqEOrkR46geK2tYTrqApaPs/S4rb3AjXpNVBANd6kozCyEiFUTOLY8Zk +q9YxPqQ43/5ZpV+0dvCqgxSbI/kITrufqWEKhK6SdCRfvHbG2by7v3JIpXsbFTlo4gI vH8KVJ1nEtGsWdG5RrnD1h/PHhV45pzz357xjHO9fVclrvEgWvqoYlfMI9JNxJuWTTf5 wDW9oJL88oJ3LZyo0bMBXvqoQK7gyzkpvAPqYrIc/KzBZWOxKRHCTGWZ1vsUBgb8zcU2 S0BGpsgwFUWc7qfdQVHPBKRrMNh7Jb8hoe+9A6DK5aMNTgNG2AlDX+mmxZv1OGxw0dVS ObzA== 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=OYvkksCi4y2AYR61ACEDCsIwObc8r1pRn1W4RDphqbk=; b=v+VeP1AlMyymXkDbn4G+aEpcd0LTsntgDqZpqJsQcyJVOlUyHqZYSwvti0XsObwjAe +1dHsEt+bgdoBcT6c9WZGne+DILHUxLaFYgXwvG4W8FlSjeoVZOU2eiXKme4d4lMMo/W MR/agWwLbY0h84YeISB+q4TeroCxuKTu2SrgnLCiCA4pPnAuyTEozA3Mg54+E7TfAMga 5kB4q5MQWS71uQt8u3yb6v8jI5V6HpOcoiYvztJrodUP7ed3//ZAwlhHtWCdVZEoxSuI ObbdfOntpJDfCIBEZ2tHnYZmfqfPhmAqTfmUdQx139VH6T0/CrNTrlw//+v1VJLmLdLQ EtPw== 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 g130-v6si1325826pgc.225.2018.04.27.07.31.46; Fri, 27 Apr 2018 07:32:00 -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 S934900AbeD0OKt (ORCPT + 99 others); Fri, 27 Apr 2018 10:10:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:55762 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934799AbeD0OKp (ORCPT ); Fri, 27 Apr 2018 10:10:45 -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 5451E21864; Fri, 27 Apr 2018 14:10:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5451E21864 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.16 32/81] tipc: add policy for TIPC_NLA_NET_ADDR Date: Fri, 27 Apr 2018 15:58:34 +0200 Message-Id: <20180427135744.899362740@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427135743.216853156@linuxfoundation.org> References: <20180427135743.216853156@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.16-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] = {