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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7868C32771 for ; Wed, 28 Sep 2022 15:15:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234506AbiI1PPS (ORCPT ); Wed, 28 Sep 2022 11:15:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234595AbiI1PPQ (ORCPT ); Wed, 28 Sep 2022 11:15:16 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E35E938463 for ; Wed, 28 Sep 2022 08:15:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 3512FCE1EA3 for ; Wed, 28 Sep 2022 15:15:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1F2AC433C1; Wed, 28 Sep 2022 15:15:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664378111; bh=lfszzX60ex3VmkV2UqCiJHDGDUnsJjxUomKfRalTkO0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jdzzxoX5eLF7MjuXEjOI7Qfs0384X2BpNNGdoAmsG9lUWRdLkvhlx/56FZBho8i80 5lIJ1z9OYy69f7Fa7kJdwA8sFM78iIiPRczmbLrgsByNXqDEUHZMked6BD4bz+QjK5 HH/akdlDX/HHGIGgVnVXEn2tmx+VpNIMfv3WHJxidjEW7YJpUPtz7iwWFQAtdXxJLi GG7AreEAMGxasGxQ+D+JUDNRpS6XFHWQUgGr1BmdiT3sVM+qzOHPe3GLDZn0jAG7vt Wlve3zxr1jXZX8t94q3YyX9AQi4XiGQrfY5usgqNDPi0Vmk+8NK3IiqiI0bZ7gu7AU XW2CwsUz9xm9w== Date: Wed, 28 Sep 2022 08:15:09 -0700 From: Jakub Kicinski To: Nikolay Aleksandrov Cc: nicolas.dichtel@6wind.com, Florent Fourcot , netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, Johannes Berg , Pablo Neira Ayuso , Florian Westphal , Jamal Hadi Salim , Jacob Keller , Guillaume Nault , Hangbin Liu Subject: Re: [PATCH net-next] docs: netlink: clarify the historical baggage of Netlink flags Message-ID: <20220928081509.2e169f4d@kernel.org> In-Reply-To: <60f75b7a-e9c3-ed30-0992-711c7ab23bc1@blackwall.org> References: <20220927212306.823862-1-kuba@kernel.org> <20220928073709.1b93b74a@kernel.org> <60f75b7a-e9c3-ed30-0992-711c7ab23bc1@blackwall.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 28 Sep 2022 17:46:28 +0300 Nikolay Aleksandrov wrote: > I like it, can't check right now if we can get into the same issue as with BULK where > someone is passing unused/wrong flags with the command and we break him though. So it'd only be effective for new commands, hopefully that's good enough: - if (hdr->cmd >= family->resv_start_op && hdr->reserved) + if (hdr->cmd >= family->resv_start_op && genl_header_check(nlh, hdr)) the resv_start_op thing I added in this cycle. > But I'd bite the bullet and maybe issue an extack msg as well. Fair point, more tests more magic. I'll add a msg.