From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [iproute2 1/1] tipc: change family attribute from u32 to u16 Date: Thu, 16 Nov 2017 16:00:47 -0800 Message-ID: <20171116160047.20ee5850@xeon-e3> References: <1510763144-24668-1-git-send-email-jon.maloy@ericsson.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: , , , , , , , , Jiri Pirko To: Jon Maloy Return-path: Received: from mail-pf0-f176.google.com ([209.85.192.176]:35445 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752903AbdKQAAz (ORCPT ); Thu, 16 Nov 2017 19:00:55 -0500 Received: by mail-pf0-f176.google.com with SMTP id d28so570237pfe.2 for ; Thu, 16 Nov 2017 16:00:55 -0800 (PST) In-Reply-To: <1510763144-24668-1-git-send-email-jon.maloy@ericsson.com> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 15 Nov 2017 17:25:44 +0100 Jon Maloy wrote: > commit 28033ae4e0f ("net: netlink: Update attr validation to require > exact length for some types") introduces a stricter control on attributes > of type NLA_U* and NLA_S*. > > Since the tipc tool is sending a family attribute of u32 instead of as > expected u16 the tool is now effectively broken. > > We fix this by changing the type of the said attribute. > > Signed-off-by: Jon Maloy Applied. I noticed devlink has the same problem! devlink/mnlg.c: mnl_attr_put_u32(nlh, CTRL_ATTR_FAMILY_ID, nlg->id);