Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp818705ybg; Tue, 9 Jun 2020 13:44:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyChW7eEbVWHurjdH0BlEs1ah1KEMRSLFJ/NRWT+UZnZZt5JAhmkYLtYWWUIiMeX1t1WdNY X-Received: by 2002:a50:fd19:: with SMTP id i25mr28323246eds.248.1591735458656; Tue, 09 Jun 2020 13:44:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591735458; cv=none; d=google.com; s=arc-20160816; b=prBQnX9W7JfdHX7fyzPMTNPRZUzri5HkX1r2klf8rCY/pD0RxGL3bs5ErrDZ2FCuZo /3qx1hbtyiPVIz6lBB57XQQAs7GljArh6l07jdQcf4wxuIitSpYRd7ougcHJRqcvVF5c UqN26k1rQE79BtT94qtvLZszN/CbRraAeENFtpZa9zOetSPOtIJdw03eI2bzv9FUFI0y s7IyOMDeyCCFAl/2NqUVBbKrTiHvbojmd1ktkK4nUXNgxweAHd082WU8hl/wSE+dbQVh wrHblFzfcbfYEBLJmLO33tfyyq7VySS3r8hBV6z8ly90sRVkqC/ot4glr4xim41m+CQd jdyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=pk656TsUJuK10JSeFJHgNch8J905bhLTJffzrmjaoW0=; b=AmgL7zkoumdDGLrCCtDt+pr5/v+G7sEzmEjAZ1OS4RA1jB8hWYx4+Iua3DYUFZmvhm DvyVu76K1pXQfDozPjQ1942SvBMb6MW0A0HVNjPd+hjrs30p1Q+eXUtfx9/95X8xUorI zC8jlEucjRkJ+WEbwxr98OyAniJjTmU9yE6CA6Ju6oshPe76E93n75xEa3nlk6kcSDQX tOTFisADj/Hv6UTIszdVzcQ1jAC513nQWIyQ9BTSgY6Xgiu8x2hT/dhZp0tzMWJNrcCI ECUoQaCpqkUPnP3hilVBk1b6Y5JZneiJX6einVcsRySQNkFyUeGChzR2Cv9+R/WoCwSE p0mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=G3LYVQE3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do22si14188918ejc.79.2020.06.09.13.43.55; Tue, 09 Jun 2020 13:44:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=G3LYVQE3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387861AbgFIU3q (ORCPT + 99 others); Tue, 9 Jun 2020 16:29:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731422AbgFIU3p (ORCPT ); Tue, 9 Jun 2020 16:29:45 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 631A4C05BD1E for ; Tue, 9 Jun 2020 13:29:45 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id r10so10775339pgv.8 for ; Tue, 09 Jun 2020 13:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=pk656TsUJuK10JSeFJHgNch8J905bhLTJffzrmjaoW0=; b=G3LYVQE3kgZa52O1qrAqyWmJFU+2tTViQAcnJuNLMbNIs6Qu4xPteyvUQN6N9WJlso hhXM1fybFGcJ0zpI48p6hFz7uEm3dL3KFXOoVgaIRJHdbbgzR/xwggGUP5hb3opNT2C1 kQHQ5U722EiLnMRrEsTK1sWx4kUzbQ4CLbZw0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=pk656TsUJuK10JSeFJHgNch8J905bhLTJffzrmjaoW0=; b=jpmJJybi7UV8CwklGqVwRqhedWuj1fXqSDRsg214kmz1t7Q/CrFWH+t38/KB3D41RE +5DjytsE/W2GHzeKyzOt4IDsXp6bR74LayXjzE8SpcHRXrsrRfj2sO1SgRQSxsaY/Ek3 0njkf8pi5VUfBCoRmBhRJb1smYytEzS9re1RGZP/cKDhnh/mo7wTyPRamsb/X70RAAMR vbE2HfLe2UygJGEagiAlqkYaDTIhCwgvNG7txn9iphw/Qg5myFWP6mz7+A+IqHa+IWVG yvJVLupzIjfWRMMB6vwO47+1R04kvO4m4omOV3HwS5MQmK28u4Qrhvtk7KRmbJZbYN1i EpBg== X-Gm-Message-State: AOAM532PV0QpCDqrW31oUsqkzL/ZoJ6i6Nm/K/7JrvfNPyiEvKx8QEKa tt3t/kDUcMF5VBvpShIpApzXiA== X-Received: by 2002:a63:e804:: with SMTP id s4mr26473158pgh.260.1591734584700; Tue, 09 Jun 2020 13:29:44 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id w17sm11432412pff.27.2020.06.09.13.29.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 13:29:43 -0700 (PDT) Date: Tue, 9 Jun 2020 13:29:42 -0700 From: Kees Cook To: David Miller Cc: stephen@networkplumber.org, o.rempel@pengutronix.de, andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, kuba@kernel.org, corbet@lwn.net, mkubecek@suse.cz, linville@tuxdriver.com, david@protonic.nl, kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux@armlinux.org.uk, mkl@pengutronix.de, marex@denx.de, christian.herber@nxp.com, amitc@mellanox.com, petrm@mellanox.com Subject: Re: [PATCH ethtool v1] netlink: add master/slave configuration support Message-ID: <202006091312.F91BB4E0CE@keescook> References: <202006091222.CB97F743AD@keescook> <20200609.123437.1057990370119930723.davem@davemloft.net> <202006091244.C8B5F9525@keescook> <20200609.130517.1373472507830142138.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200609.130517.1373472507830142138.davem@davemloft.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 09, 2020 at 01:05:17PM -0700, David Miller wrote: > From: Kees Cook > Date: Tue, 9 Jun 2020 12:49:48 -0700 > > > Okay, for now, how about: > > > > - If we're dealing with an existing spec, match the language. > > Yes. > > > - If we're dealing with a new spec, ask the authors to fix their language. > > Please be more specific about "new", if it's a passed and ratified standard > then to me it is "existing". Sure. But many kernel devs are also interacting with specifications as they're being developed. We can have an eye out for this when we're in such positions. > > - If a new version of a spec has updated its language, adjust the kernel's. > > Unless you're willing to break UAPI, which I'm not, I don't see how this is > tenable. We'll get there when we get there. I honestly don't think any old spec is actually going to change their language; I look forward to being proven wrong. But many times there is no UAPI. If it's some register states between driver and hardware, no users sees or cares what the register is named. > > - If we're doing with something "internal" to the kernel (including UAPI), > > stop adding new instances. > > Even if it is part of supporting a technology where the standard uses > those terms? So we'll use inconsitent terms internally? What? I mean "internal" in the sense of "does not have an external dependency". Maybe I should say "independent"? > This is why I'm saying, just make sure new specs use language that is > less controversial. Then we just use what the specs use. > > Then you don't have to figure out what to do about established UAPIs > and such, it's a non-issue. Yes, but there are places where people use these terms where they are NOT part of specs, and usually there is actually _better_ terminology to be used, and we can easily stop adding those. And we can start to rename old "independent" cases too. For example, if MS_SLAVE were being added now, we would rename it. -- Kees Cook