Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2733565rdh; Wed, 27 Sep 2023 10:59:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFq2CAuSXDhZC0rxmMWhhM7vBzeJSf2kQwpawkMRsT6nUOh0CYWgi+K5Pt5ey1SNi7YeSso X-Received: by 2002:a05:6a00:2e19:b0:68f:dfda:1814 with SMTP id fc25-20020a056a002e1900b0068fdfda1814mr3156745pfb.18.1695837596675; Wed, 27 Sep 2023 10:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695837596; cv=none; d=google.com; s=arc-20160816; b=GeQptuHNId8OcRH71UzvCPPW/8sPZBV0tRiuiJZ1ZDde+FoFsj+/BtZr5+nd+u02yb WzrQykUaAs08Mym1xI06a1klZ97Xaw53rFX31SjAKPjC7mTHAXd7v6Y23T4a0Q731awb DHoh7ljYg8SY/QLQ/TUMIQX/7JRrlaYCSOt7aPD+yG4Xia+6diuDDfbfP9GhDzKhuOYG MSnTMB2zSELgxHQwQMsycXeWpV7K9TZW1sOBeVp/kCgCy45vUGIs9J/v2vYutYNtDz4L rxMXq52kNKhwtc9zgEo03edT+23GanmAMRnua6aOrXudGMufda7/m/KJGAgLtu+dlbfT WmiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qk/M+saCBlOrifX9o0L6oxM9T2M5RIIV6XdENJ7/hVU=; fh=59+rrepzqKvUEdb7OsPA0TvZySNa16yFu1caYTB2jdE=; b=Hv/nE52UlbTfDEk4UcjP2bgACU1sI/t+jZRBZ4xnI/Ml78dh6s+pXDdXXQfWEkRdKk 9iJCnxmYq1X6Nb0qqZGzLPZ593KJYcnyGEOfEAu/OFHesJmY35wLVVT+3/YbCi4zlWgb cM4Z+Dc9rsq9CMQyXZ3cifOf3Z3QWJUg44VnrNelUZi5e07umh3Gb0B0PxlbNH7XeGvs LuHm7THvxS7U7i2MYqoH5Vd/7d/reY5v9MyuRr/VuTVOWf4eZ/SjaKQWNTvvjs8SS2K6 8bueTMkfoTbwiDRdsfY3Z/GJTisLN48OTbZ3NLVXu2pzoRtHNX9gXW637sPhbj4xWu9r T7Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EWjJi1jq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id 189-20020a6300c6000000b00582dcfe3b3csi8736108pga.491.2023.09.27.10.59.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 10:59:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EWjJi1jq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4CE688131A96; Wed, 27 Sep 2023 09:15:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231463AbjI0QPn (ORCPT + 99 others); Wed, 27 Sep 2023 12:15:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231657AbjI0QPf (ORCPT ); Wed, 27 Sep 2023 12:15:35 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCE011BD for ; Wed, 27 Sep 2023 09:15:33 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-53fbf2c42bfso8679212a12.3 for ; Wed, 27 Sep 2023 09:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1695831333; x=1696436133; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qk/M+saCBlOrifX9o0L6oxM9T2M5RIIV6XdENJ7/hVU=; b=EWjJi1jqh6WTxu5oWMb4VHh6Tv+tHmmslrdt+e2SEtQ8ihfyO52L0Z+0oikG7inGG3 9OGc6TVEDdEYrXS9w+V2wJFguqao+tfsXvWuMwz4il198ie7VFe5VB/lwaWGcdsc4nI0 BeLI+46dJjyqE5ApjQjCeSrYsMT1oA+3GPkhg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695831333; x=1696436133; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qk/M+saCBlOrifX9o0L6oxM9T2M5RIIV6XdENJ7/hVU=; b=pkruklo6gC9jCnR/TPjDlFdKK1tY2/r6Y4qlaJuJPDy8zFQHicfb99KVRmlVpxNDKV +3Kir4hm7CnuiUAOBa+quct91Kor4OZ1A9jEsd8IzlXqQbgTbuRBM3T0ejMIiuSkVLvs SL8m6FLiFXSgSx7xRejnuDYdJti7+wc82xMAC0AwogpgwvHjV/n6NVnCUjITHxARnP/b SgPEQHr80nC/kkl3NYczRWBGt2L0qahW1un+87yoPDD3OwnfBBtZe3vw6NfPGy8kZV7x ZHaed4h43+iYGbDZnkuhR7lV2uvK4u53V9PBUSKbXzZx+Y9o9i2SXAAfuWmd5OK4HTiy JjjQ== X-Gm-Message-State: AOJu0Ywum59egdaMFh9q9f4A6Rmwq7V3W5/lGVHt2h0kTBitDkJg4jwy 9dn2xHYTHNSmBJORbNocQUr6cQ== X-Received: by 2002:a05:6a20:ce92:b0:152:efa4:21b with SMTP id if18-20020a056a20ce9200b00152efa4021bmr2513269pzb.5.1695831333107; Wed, 27 Sep 2023 09:15:33 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id c14-20020aa7880e000000b0069100e70943sm11945318pfo.24.2023.09.27.09.15.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 09:15:32 -0700 (PDT) Date: Wed, 27 Sep 2023 09:15:32 -0700 From: Kees Cook To: Justin Stitt Cc: Joe Perches , linux-kernel@vger.kernel.org, Nick Desaulniers , Nathan Chancellor , Jakub Kicinski , Krzysztof Kozlowski , geert@linux-m68k.org, gregkh@linuxfoundation.org, workflows@vger.kernel.org, mario.limonciello@amd.com Subject: Re: [PATCH 3/3] get_maintainer: add patch-only pattern matching type Message-ID: <202309270913.911E51C@keescook> References: <20230927-get_maintainer_add_d-v1-0-28c207229e72@google.com> <20230927-get_maintainer_add_d-v1-3-28c207229e72@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230927-get_maintainer_add_d-v1-3-28c207229e72@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 27 Sep 2023 09:15:56 -0700 (PDT) On Wed, Sep 27, 2023 at 03:19:16AM +0000, Justin Stitt wrote: > Add the "D:" type which behaves the same as "K:" but will only match > content present in a patch file. > > To illustrate: > > Imagine this entry in MAINTAINERS: > > NEW REPUBLIC > M: Han Solo > W: https://www.jointheresistance.org > D: \bstrncpy\b > > Our maintainer, Han, will only be added to the recipients if a patch > file is passed to get_maintainer (like what b4 does): > $ ./scripts/get_maintainer.pl 0004-some-change.patch > > If the above patch has a `strncpy` present in the subject, commit log or > diff then Han will be to/cc'd. > > However, in the event of a file from the tree given like: > $ ./scripts/get_maintainer.pl ./lib/string.c > > Han will not be noisily to/cc'd (like a K: type would in this > circumstance) > > Note that folks really shouldn't be using get_maintainer on tree files > anyways [1]. > > [1]: https://lore.kernel.org/all/20230726151515.1650519-1-kuba@kernel.org/ As Greg suggested, please drop the above paragraph and link. Then this looks good to me. I would immediately want to send this patch too, so please feel free to add this to your series (and I bet many other hints on "git grep 'K:.\\b'" would want to switch from K: to D: too): diff --git a/MAINTAINERS b/MAINTAINERS index 5f18c6ba3c3c..830e10866acf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5057,7 +5057,7 @@ F: Documentation/kbuild/llvm.rst F: include/linux/compiler-clang.h F: scripts/Makefile.clang F: scripts/clang-tools/ -K: \b(?i:clang|llvm)\b +D: \b(?i:clang|llvm)\b CLK API M: Russell King @@ -8199,7 +8199,7 @@ F: lib/strcat_kunit.c F: lib/strscpy_kunit.c F: lib/test_fortify/* F: scripts/test_fortify.sh -K: \b__NO_FORTIFY\b +D: \b__NO_FORTIFY\b FPGA DFL DRIVERS M: Wu Hao @@ -11457,9 +11457,9 @@ F: include/linux/overflow.h F: include/linux/randomize_kstack.h F: kernel/configs/hardening.config F: mm/usercopy.c -K: \b(add|choose)_random_kstack_offset\b -K: \b__check_(object_size|heap_object)\b -K: \b__counted_by\b +D: \b(add|choose)_random_kstack_offset\b +D: \b__check_(object_size|heap_object)\b +D: \b__counted_by\b KERNEL JANITORS L: kernel-janitors@vger.kernel.org @@ -17354,7 +17354,7 @@ F: drivers/acpi/apei/erst.c F: drivers/firmware/efi/efi-pstore.c F: fs/pstore/ F: include/linux/pstore* -K: \b(pstore|ramoops) +D: \b(pstore|ramoops) PTP HARDWARE CLOCK SUPPORT M: Richard Cochran @@ -19302,8 +19302,8 @@ F: include/uapi/linux/seccomp.h F: kernel/seccomp.c F: tools/testing/selftests/kselftest_harness.h F: tools/testing/selftests/seccomp/* -K: \bsecure_computing -K: \bTIF_SECCOMP\b +D: \bsecure_computing +D: \bTIF_SECCOMP\b SECURE DIGITAL HOST CONTROLLER INTERFACE (SDHCI) Broadcom BRCMSTB DRIVER M: Kamal Dasu -- Kees Cook