From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: [PATCH net 1/2] tipc: add policy for TIPC_NLA_NET_ADDR Date: Mon, 16 Apr 2018 08:29:42 -0700 Message-ID: <20180416152943.103989-2-edumazet@google.com> References: <20180416152943.103989-1-edumazet@google.com> Cc: netdev , Eric Dumazet , Eric Dumazet , Jon Maloy , Ying Xue To: "David S . Miller" Return-path: Received: from mail-pl0-f68.google.com ([209.85.160.68]:37520 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751870AbeDPP3u (ORCPT ); Mon, 16 Apr 2018 11:29:50 -0400 Received: by mail-pl0-f68.google.com with SMTP id f7-v6so3181579plr.4 for ; Mon, 16 Apr 2018 08:29:50 -0700 (PDT) In-Reply-To: <20180416152943.103989-1-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: 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 --- net/tipc/netlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/tipc/netlink.c b/net/tipc/netlink.c index b76f13f6fea10a53d00ed14a38cdf5cdf7afa44c..d4e0bbeee72793a060befaf8a9d0239731c0d48c 100644 --- a/net/tipc/netlink.c +++ b/net/tipc/netlink.c @@ -79,7 +79,8 @@ const struct nla_policy tipc_nl_sock_policy[TIPC_NLA_SOCK_MAX + 1] = { 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] = { -- 2.17.0.484.g0c8726318c-goog