Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp477723rdb; Thu, 5 Oct 2023 11:16:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7YKIdYBteO1UaVH+kYmfGeqNoJhcy+1Ua/0PMWmB1XJVaQcYXNulvgfLXfanJtgkzSNM7 X-Received: by 2002:a17:902:e883:b0:1c6:19da:b29f with SMTP id w3-20020a170902e88300b001c619dab29fmr6902258plg.26.1696529809152; Thu, 05 Oct 2023 11:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696529809; cv=none; d=google.com; s=arc-20160816; b=UagT0EB9nLVYDm/ZSslU3HHyD0XioorlfwNpM7o5VDk28BN2e3SrQctQH+qGg/v/wV 7+BBOQ0pSG3GnNVRo2vH7vSt1n7NwOpgJfL4QDY13SDQ88SEH/EeMwjTr2GdrzIdx7+t UdbyMJMvuEtl947LBz2Cpy3SBBnhey0q6ljtlHULl5hK+bcwu0dOcrh6IicutFNg3f4D AJB84ms5wjM1ktWteh8KWxcJo9XT2mgk6LjXB/GtAtYD0LogURw9MQpGTO8hjCEgfixE 29xw02CDjL4aoelijqxpK2omExy9sAgUq+4NEpwMLhpTp3wnBQAvTaYP6OPPpSfmlDyK b6sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=74Hdts5549xbKOzZL9yDWOpC8zOJlEhvCxg3/QV7cdA=; fh=vCHp1B/yOxJybSYDuu2xEeOpLDVL/FilIk5XOdtpryM=; b=HB2kRsrlZ+r7xSkC0/q9lOpvQS2Hr9gJtCEwlCsuE4xOzuF7Y6elj9sGaUiljp41CH QPNdAMvf3J/osBtoWraCJXSZ+1VJTw+LEUHZQBUgY1YCyrqh7aHpgoO77NfFaatYTKxu wOKLd/GVC06e7kkes0TxKesEnjRrRiN2cbtJlZCPskK72PQiBLqqexG8dmWjC4h9xWtx kRe+d2JdL2IM/n+5zdSDoUJyBjcOiJP8Izbs1F0ipJStZmRhrHb6TRn07MEc4tKvjq1H o63fld/sjZim16M8gQab1NaCenb4nC1S7xkQo9PEPkeuXcG6gm0gOdBU145lQT4E4cZr jkAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id j3-20020a170902f24300b001c61af1e683si1809523plc.641.2023.10.05.11.16.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 11:16:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 90581807D8D8; Thu, 5 Oct 2023 11:16:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229702AbjJESPZ convert rfc822-to-8bit (ORCPT + 99 others); Thu, 5 Oct 2023 14:15:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232180AbjJESPF (ORCPT ); Thu, 5 Oct 2023 14:15:05 -0400 Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9866993 for ; Thu, 5 Oct 2023 11:15:04 -0700 (PDT) Received: from omf10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 72A5980373; Thu, 5 Oct 2023 18:15:03 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA id 6556F40; Thu, 5 Oct 2023 18:15:01 +0000 (UTC) Message-ID: <6e13b9b1a964b49079a2f7814c0d65e767cd010a.camel@perches.com> Subject: Re: [PATCH] get_maintainer/MAINTAINERS: confine K content matching to patches From: Joe Perches To: Justin Stitt Cc: linux-kernel@vger.kernel.org, Kees Cook , Nick Desaulniers Date: Thu, 05 Oct 2023 11:15:00 -0700 In-Reply-To: References: <20231004-get_maintainer_change_k-v1-1-ac7ced18306a@google.com> <3dca40b677dd2fef979a5a581a2db91df2c21801.camel@perches.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Rspamd-Server: rspamout03 X-Rspamd-Queue-Id: 6556F40 X-Stat-Signature: uxrsus4ujso7hf9ozd1j758h3wyqrsdm X-Spam-Status: No, score=-0.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+hGAfpLA1BmrpRYXbG0ILR/KpWsgTyOAk= X-HE-Tag: 1696529701-165331 X-HE-Meta: U2FsdGVkX19zkLF8srkeZSnWC0jmIG2JreFugro4oHuh6UvV3v8NVDt++hGLmumtHQwm07jsPYm/QSzkYZckQiz81Ybfqm5MCe6J36QeG3ZHeceZ+CiyydYuEJiWujF33lzd60tODI3a85dnNpccjgjegtEJo736j34RAsbs2i34X0eY4xMIw8/H5kj68s58kA7Z1KNWoKY/k3RfZYgwsHD5Otamh1LT+pSnkqA1vqZa2C5aV9x8MXraNVpDecmSO7wxL/FzKbzDZJYJBM/Vvklt4SmNhFtk1+kgAFJEq9OXlQec4PUlaZSsg5RMood5tLAFeIqZM/UOo4mp4HceD8p+WozVot9uPuUfRk40uNKqYiHuAUyZi7YtFzx8H0uk X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email 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 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 11:16:17 -0700 (PDT) On Thu, 2023-10-05 at 11:06 -0700, Justin Stitt wrote: > On Wed, Oct 4, 2023 at 7:40 PM Joe Perches wrote: > > > > On Wed, 2023-10-04 at 21:21 +0000, Justin Stitt wrote: > > > The current behavior of K: is a tad bit noisy. It matches against the > > > entire contents of files instead of just against the contents of a > > > patch. > > > > > > This means that a patch with a single character change (fixing a typo or > > > whitespace or something) would still to/cc maintainers and lists if the > > > affected file matched against the regex pattern given in K:. For > > > example, if a file has the word "clang" in it then every single patch > > > touching that file will to/cc Nick, Nathan and some lists. > > > > > > Let's change this behavior to only content match against patches > > > (subjects, message, diff) as this is what most people expect the > > > behavior already is. Most users of "K:" would prefer patch-only content > > > matching. If this is not the case let's add a new matching type as > > > proposed in [1]. > > > > I'm glad to know you are coming around to my suggestion. > :) > > > > > I believe the file-based keyword matching should _not_ be > > removed and the option should be added for it like I suggested. > > Having a command line flag allowing get_maintainer.pl > users to decide the behavior of K: is weird to me. If I'm a maintainer setting > my K: in MAINTAINERS I want some sort of consistent behavior. Some > patches will start hitting mailing list that DO have keywords in the patch > and others, confusingly, not. Not true. If a patch contains a keyword match, get_maintainers will _always_ show the K: keyword maintainers unless --nokeywords is specified on the command line. If a file contains a keyword match, it'll only show the K: keyword if --keywords-in-file is set. > To note, we get some speed-up here as pattern matching a patch that > touches lots of files would result in searching all of them in their > entirety. Just removing this behavior _might_ have a measurable > speed-up for patch series touching dozens of files. Again, not true. Patches do _not_ scan the original modified files for keyword matches. Only the patch itself is scanned. That's the current behavior as well.