Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp379367ybt; Mon, 6 Jul 2020 11:31:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzggwZOzY9himM5gNQPNeNwAqbQ3gvFOuMELi0LUryuWUNlPngCUMjYxykpTpobLIQodHBh X-Received: by 2002:a17:906:fca4:: with SMTP id qw4mr42133541ejb.362.1594060319698; Mon, 06 Jul 2020 11:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594060319; cv=none; d=google.com; s=arc-20160816; b=wuphEA1a6sXFZcjil2sKUxMr++et/MXZzqc/f8TjdRZAWxI/sHAZv6hqDHmTC53aZ6 1jcPl314zfrztV2Y1QsbR0E85wA4my1EsnCg8rw264B21mkvjkN8emkyqsahMIYB620+ NAklJaPQdqXJVAVJWuWYLI/rErTEAT+nqAO+sO8o3uNJe01cHlb6T9MIkQOoXRehnK/W EgibKFqqCq6+ri+OFAgI7KfjhoepjeKo33HNgh+VMr2Cjwcb9cibM9rW3rZQ1kxfd/up g3TLY5IMigvCjS+bzdq1qyB6NX6B3/ahUask1j6aAAhaUPEONFVAFOJZWdKBBAl6aMvt Wo/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=zyWuy0yCyk2eYRG01JT39tEAlo/ud2i6BiJNX7W6VIc=; b=gMQvAJHioMB7CQIHKxinjO+MC+g4eN88sdW2GolOT16W0jNPXO2qWfMKKl5P3w+fwj 0meXmVxT+fpEJAm9RlvGTMndnPR6Fn6IXGyTrQiW6i3NUQEK2OOvv3gfSRcuvroY1iTv vIL2HmiFT0Xv6/t02jnczDNq0N8F0fkhKQuV09FSYOKdlbmeMJgBRFSpDdvv7v8Z68Zj +fjukhmwl1AMwXTy7JslDBw/izaO5ssmBqiOs9dlddvkP8XlJwa5JaEwjWA6Ds4yIsXU HfAKfD8kNC68zBANZYM9X/ByWMZpGamiunMyj2xsTs9kGgdjZOKFabxVbMjct3SNNyVG A6kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="DLzht/w1"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u25si4201334eje.33.2020.07.06.11.31.36; Mon, 06 Jul 2020 11:31:59 -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=@linuxfoundation.org header.s=google header.b="DLzht/w1"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729728AbgGFSav (ORCPT + 99 others); Mon, 6 Jul 2020 14:30:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729689AbgGFSau (ORCPT ); Mon, 6 Jul 2020 14:30:50 -0400 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE3F2C061755 for ; Mon, 6 Jul 2020 11:30:50 -0700 (PDT) Received: by mail-oi1-x242.google.com with SMTP id l63so31361271oih.13 for ; Mon, 06 Jul 2020 11:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zyWuy0yCyk2eYRG01JT39tEAlo/ud2i6BiJNX7W6VIc=; b=DLzht/w1xCkzqQ4MWqV+jtGW5819nHrOl/TS2g7axVbUrMBMtfxHy7hPWH1VaoUHUv XZPa70k8YfWCVhbNOEVvP/6kHXhMAi3eGkeQ+psnl0r2i8ZiFhVv3n1fRbpXFvIhKwpw cWHf1Bu0mZRzULi3hfujcYzBM6NjG3g8LlYX4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zyWuy0yCyk2eYRG01JT39tEAlo/ud2i6BiJNX7W6VIc=; b=nd72frURPNO8ffZOlY6UHp+HRGM18NZUDefMEU5VaN25wl1NEpWagUXEkJjbvEaeW/ EtooOEvpDsY7MihrG/amVGOocfAMPI2sX2fgwJj03OLXDtTnVc4eQ7JRh29E9HoyUNIq J3mBZMF8oCq7rzVSvkDqQNVW9nIBimUWEtRtYNZBH3snq/KIUrQtZ6RHlYx4D/ypKEcp MGmaWyTZqu/2EGNEwmvV/Frj52F/1YovACNufNsABA5unXG8FX7DJx77qmZ2egooVimm +A8sK9d1NTcUSlhr5yLLto5weo2r1p1Tsibh9mPxdUCRX9oaF2VT4L/abeGmRtVqUb6a TSDA== X-Gm-Message-State: AOAM533iHE9XRPs00bK0+kiXf56DXTjCuMVb0TWx1aFLKIZ3GogVA7sB TU5FppjHEVpbvxs9W+/AIQOySw== X-Received: by 2002:aca:54d3:: with SMTP id i202mr479237oib.170.1594060249860; Mon, 06 Jul 2020 11:30:49 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id t187sm5224957oib.45.2020.07.06.11.30.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Jul 2020 11:30:49 -0700 (PDT) Subject: Re: [Tech-board-discuss] [PATCH] CodingStyle: Inclusive Terminology To: Dan Williams , torvalds@linux-foundation.org Cc: ksummit-discuss@lists.linuxfoundation.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, tech-board-discuss@lists.linuxfoundation.org, Chris Mason , skhan@linuxfoundation.org References: <159389297140.2210796.13590142254668787525.stgit@dwillia2-desk3.amr.corp.intel.com> From: Shuah Khan Message-ID: <79214066-3886-e0ef-f26e-8cb3d53404be@linuxfoundation.org> Date: Mon, 6 Jul 2020 12:30:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <159389297140.2210796.13590142254668787525.stgit@dwillia2-desk3.amr.corp.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/4/20 2:02 PM, Dan Williams wrote: > Recent events have prompted a Linux position statement on inclusive > terminology. Given that Linux maintains a coding-style and its own > idiomatic set of terminology here is a proposal to answer the call to > replace non-inclusive terminology. > Hi Dan, Thanks for taking the time to work on this patch and updating the coding-style.rst with the with inclusive terminology guidelines and adding a new document outlining the scope. The suggestions you made will help us adapt inclusive terminology for the current times, and also help us move toward terms that are intuitive and easier to understand keeping our global developer community in mind. Allowlist/denylist terms are intuitive and action based which have a globally uniform meaning. Terms such as "whitelist" etc are contextual, hence assume contextual knowledge on the part of the reader. A couple comments below: > Cc: Jonathan Corbet > Cc: Kees Cook > Signed-off-by: Chris Mason > Signed-off-by: Greg Kroah-Hartman > Signed-off-by: Dan Williams > --- > Documentation/process/coding-style.rst | 12 ++++ > Documentation/process/inclusive-terminology.rst | 64 +++++++++++++++++++++++ > Documentation/process/index.rst | 1 > 3 files changed, 77 insertions(+) > create mode 100644 Documentation/process/inclusive-terminology.rst > > diff --git a/Documentation/process/coding-style.rst b/Documentation/process/coding-style.rst > index 2657a55c6f12..4b15ab671089 100644 > --- a/Documentation/process/coding-style.rst > +++ b/Documentation/process/coding-style.rst > @@ -319,6 +319,18 @@ If you are afraid to mix up your local variable names, you have another > problem, which is called the function-growth-hormone-imbalance syndrome. > See chapter 6 (Functions). > > +For symbol names, avoid introducing new usage of the words 'slave' and > +'blacklist'. Recommended replacements for 'slave' are: 'secondary', > +'subordinate', 'replica', 'responder', 'follower', 'proxy', or > +'performer'. Recommended replacements for blacklist are: 'blocklist' or > +'denylist'. allowlist and blocklist or denylist are lot more intuitive than white/black in any case. > + > +Exceptions for introducing new usage is to maintain a userspace ABI, or > +when updating code for an existing (as of 2020) hardware or protocol > +specification that mandates those terms. For new specifications consider > +translating specification usage of the terminology to the kernel coding > +standard where possible. See :ref:`process/inclusive-terminology.rst > +` for details. > > 5) Typedefs > ----------- > diff --git a/Documentation/process/inclusive-terminology.rst b/Documentation/process/inclusive-terminology.rst > new file mode 100644 > index 000000000000..a8eb26690eb4 > --- /dev/null > +++ b/Documentation/process/inclusive-terminology.rst > @@ -0,0 +1,64 @@ > +.. _inclusiveterminology: > + > +Linux kernel inclusive terminology > +================================== > + > +The Linux kernel is a global software project, and in 2020 there was a > +global reckoning on race relations that caused many organizations to > +re-evaluate their policies and practices relative to the inclusion of > +people of African descent. This document describes why the 'Naming' > +section in :ref:`process/coding-style.rst ` recommends > +avoiding usage of 'slave' and 'blacklist' in new additions to the Linux > +kernel. > + > +On the triviality of replacing words > +==================================== > + > +The African slave trade was a brutal system of human misery deployed at > +global scale. Some word choice decisions in a modern software project > +does next to nothing to compensate for that legacy. So why put any > +effort into something so trivial in comparison? Because the goal is not > +to repair, or erase the past. The goal is to maximize availability and > +efficiency of the global developer community to participate in the Linux > +kernel development process. > + > +Word choice and developer efficiency > +==================================== > + > +Why does any software project go through the trouble of developing a > +document like :ref:`process/coding-style.rst `? It does so > +because a common coding style maximizes the efficiency of both > +maintainers and developers. Developers learn common design patterns and > +idiomatic expressions while maintainers can spot deviations from those > +norms. Even non-compliant whitespace is considered a leading indicator > +to deeper problems in a patchset. Coding style violations are known to > +take a maintainer "out of the zone" of reviewing code. Maintainers are > +also sensitive to word choice across specifications and often choose to > +deploy Linux terminology to replace non-idiomatic word-choice in a > +specification. > + > +Non-inclusive terminology has that same distracting effect which is why > +it is a style issue for Linux, it injures developer efficiency. > + > +Of course it is around this point someone jumps in with an etymological > +argument about why people should not be offended. Etymological arguments > +do not scale. The scope and pace of Linux to reach new developers > +exceeds the ability of historical terminology defenders to describe "no, > +not that connotation". The revelation of 2020 was that black voices were > +heard on a global scale and the Linux kernel project has done its small > +part to answer that call as it wants black voices, among all voices, in > +its developer community. > + > +Really, 'blacklist' too? > +======================== > + > +While 'slave' has a direct connection to human suffering the etymology > +of 'blacklist' is devoid of a historical racial connection. However, one > +thought exercise is to consider replacing 'blacklist/whitelist' with > +'redlist/greenlist'. Realize that the replacement only makes sense if > +you have been socialized with the concepts that 'red/green' implies > +'stop/go'. Colors to represent a policy requires an indirection. The > +socialization of 'black/white' to have the connotation of > +'impermissible/permissible' does not support inclusion. allowlist/denylist makes the most sense than using colors. > + > +Inclusion == global developer community efficiency. > diff --git a/Documentation/process/index.rst b/Documentation/process/index.rst > index f07c9250c3ac..ed861f6f8d25 100644 > --- a/Documentation/process/index.rst > +++ b/Documentation/process/index.rst > @@ -27,6 +27,7 @@ Below are the essential guides that every developer should read. > submitting-patches > programming-language > coding-style > + inclusive-terminology > maintainer-pgp-guide > email-clients > kernel-enforcement-statement > Please add my Signed-off-by: Shuah Khan or Acked-by: Shuah Khan thanks, -- Shuah