From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C24CC433E0 for ; Fri, 29 May 2020 14:29:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 175E52073B for ; Fri, 29 May 2020 14:29:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="cWE2+85z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727018AbgE2O3D (ORCPT ); Fri, 29 May 2020 10:29:03 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:56818 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726849AbgE2O3C (ORCPT ); Fri, 29 May 2020 10:29:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=IUGSg4KBn7ED5FXRLcBsKB4n8JH0Ugrv/l8hdihtGFs=; b=cWE2+85zlt5M4SkV/UQwrS5xOZ QQGYx6JFLfjoZe6xGLwsWNGrp0YMRs974c5th+cXmFkzs24DCgXioNH4GJ/kLA1hEZGKtCilibEMY V9QBEV+ammDMymorLcCTEjYh3dDEmFfbwhyAaSX1Z3AT4YGiPMZFHXa9/2F9nzJNmViY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1jeg0I-003eUZ-7E; Fri, 29 May 2020 16:28:58 +0200 Date: Fri, 29 May 2020 16:28:58 +0200 From: Andrew Lunn To: Michal Kubecek Cc: John Linville , netdev@vger.kernel.org, Oleksij Rempel Subject: Re: [PATCH ethtool 02/21] netlink: fix nest type grouping in parser Message-ID: <20200529142858.GD869823@lunn.ch> References: <66427ed9d01547b06bc7eb2b853a18108274f3eb.1590707335.git.mkubecek@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <66427ed9d01547b06bc7eb2b853a18108274f3eb.1590707335.git.mkubecek@suse.cz> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, May 29, 2020 at 01:21:17AM +0200, Michal Kubecek wrote: > Even if we are only interested in one nested attribute when using > PARSER_GROUP_NEST group type, the temporary buffer must contain proper > netlink header and have pointer to it and payload set up correctly for > libmnl composition functions to be able to track current message size. > > Fixes: 9ee9d9517542 ("netlink: add basic command line parsing helpers") > Reported-by: Andrew Lunn > Signed-off-by: Michal Kubecek Tested-by: Andrew Lunn Andrew