Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp327590ybh; Thu, 12 Mar 2020 02:46:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv0UdA14dl48vH3MYOjFqoq9X2rCBIgIZ2hST5vbu8lLtd3MEnxf0qj67R7FvsFOITs1t4O X-Received: by 2002:aca:adc7:: with SMTP id w190mr1933797oie.42.1584006376468; Thu, 12 Mar 2020 02:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584006376; cv=none; d=google.com; s=arc-20160816; b=O5ojtITx+XfaupWvGeCpMC3ZLcva8n1bT/dNOZSD359v5JJSOB8M2yYRAztkxhaMJ4 OwA7lFH2I84A6X3YckcON7hLEystAgFMyPDSpaGvoIADcbtvmIhraxDrgSsVZydU4Xej 9vNteUlwoxBHaaX28vjZVRxdWaPWBAf2HG/zGaiRSj0hCsp8CfynmadGDOqRtDRYMK8/ cJ7AToRQ/6V0zMTTr9HL7ezql2lRyhMMxsGLkBchortGu0aWZ4uxSGeCq5pEUVwsvv03 4Z4MxCldzw5/ih/VHDC6CSTChu6cIvLWnsWZAu7dhbZRJtmCXq02RmhjcO4Q7/GOnMZr zd5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Ol6GGUHreDhfTydAq3v9/lAhIHMsNpMpL8vtkj20Wu0=; b=xL7cqi/1GhPDoW75FFMhAnX69raXjouQVK3CRmv5EXqnIkIm9KUNEjSmeDy1TSLcn5 swlTLjixBiF5fyefj02VwSIcBDqO93vy+HhtMn0mgseHlDQnsJQX47eWoaR8050qIGvq VIJ8opk49GIo+iBnF3gpojUlpkSjBvO+NgLMGJRpB3SNS6x3QcQTsen7Ltf5Cd6j2yTT /4IRHjrxuykrGWrgYnhhrfacYHlcL7QOp87r8bMRraq6pMvRrJHv7EQYHdQZLKNVc2BP DQ7/Hs1V2A/ncdnXrJw65bHfnUU4qbdV99fbxXC6ek2ZM8IUD2ZbmWfOvRqVG/MS/vah PKQA== 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 l12si2549175otn.101.2020.03.12.02.46.02; Thu, 12 Mar 2020 02:46:16 -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 S1726677AbgCLJpi (ORCPT + 99 others); Thu, 12 Mar 2020 05:45:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:40496 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725268AbgCLJpi (ORCPT ); Thu, 12 Mar 2020 05:45:38 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 32E4AB00A; Thu, 12 Mar 2020 09:45:33 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 37823E0C79; Thu, 12 Mar 2020 10:45:32 +0100 (CET) Date: Thu, 12 Mar 2020 10:45:32 +0100 From: Michal Kubecek To: netdev@vger.kernel.org Cc: Jakub Kicinski , David Miller , Jiri Pirko , Andrew Lunn , Florian Fainelli , John Linville , Johannes Berg , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 05/15] ethtool: set netdev features with FEATURES_SET request Message-ID: <20200312094532.GM8012@unicorn.suse.cz> References: <4fda0f27da984254c3df3c9e58751134967036c9.1583962006.git.mkubecek@suse.cz> <20200311155632.4521c71b@kicinski-fedora-PC1C0HJN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200311155632.4521c71b@kicinski-fedora-PC1C0HJN> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 11, 2020 at 03:56:32PM -0700, Jakub Kicinski wrote: > On Wed, 11 Mar 2020 22:40:28 +0100 (CET) Michal Kubecek wrote: > > + if (!(req_info.flags & ETHTOOL_FLAG_OMIT_REPLY)) { > > + bool compact = req_info.flags & ETHTOOL_FLAG_COMPACT_BITSETS; > > is req_info->flags validated anywhere to make sure users get an error > when they set a bit unrecognized by the kernel? :S It's not and it it definitely should be. As this also affects code which is already in mainline, I'll send a patch with the check for net tree. Michal