Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tipc: add policy for TIPC_NLA_NET_ADDR

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 <edumazet@google.com>
Cc: Jon Maloy <jon.maloy@ericsson.com>
Cc: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Eric Dumazet and committed by
David S. Miller
ec518f21 9783ccd0

+2 -1
+2 -1
net/tipc/netlink.c
··· 79 79 80 80 const struct nla_policy tipc_nl_net_policy[TIPC_NLA_NET_MAX + 1] = { 81 81 [TIPC_NLA_NET_UNSPEC] = { .type = NLA_UNSPEC }, 82 - [TIPC_NLA_NET_ID] = { .type = NLA_U32 } 82 + [TIPC_NLA_NET_ID] = { .type = NLA_U32 }, 83 + [TIPC_NLA_NET_ADDR] = { .type = NLA_U32 }, 83 84 }; 84 85 85 86 const struct nla_policy tipc_nl_link_policy[TIPC_NLA_LINK_MAX + 1] = {