Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp485027rdb; Thu, 5 Oct 2023 11:31:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHai6t86zt0/kjrHclGMyCaF0JydO7AtqqcQMyk6nadZG35+8tMeH4o9W7BLbHGZR9mOQsW X-Received: by 2002:a05:6e02:e08:b0:34f:c40c:6cc with SMTP id a8-20020a056e020e0800b0034fc40c06ccmr5274716ilk.1.1696530675589; Thu, 05 Oct 2023 11:31:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696530675; cv=none; d=google.com; s=arc-20160816; b=ahfr1mlKzNi4co1omIaiHtD8HrFC4hf2zSWdWNox5lTn/04jYtrGZERC+GH+RrLWGf h3x0yxFsgrvGoZFOAtPtiTrGcg5IaggaOR3ldmdRmLN2Okdh6vp52EVJbDGaVEQkGWNg spzUMkd5bZYF4NGt0M6a2780Gm8OvzNzt3E0PCJqh46uSQKf3rWMl6hXoPF/C5QfJcgx HTfgeismPxV+YQF7MqjgI2uvOP89h8URsRAFrAIq+JwGTr1oo+Q8+5IrYTh9ioa8EiKi 1mUu1lHqEzWJn4L778Z+DEw3MfMCE8+ai9ZGmsbvkjd1lrC8asOy7mDWrqAu6sPJ4L4G DBmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=7Ct+AkMEgp1QkkUYEj6CQZHQ0//yvYcFdWaKg1efiRw=; fh=xz4t0FARxk3fQoNEXBqfbbqibQ6R+uu4o6PLQyC/fT8=; b=IkKiRQyYU/A8V8HOCyw3R/L/EW7k2SmEDzakdIkrHicAX9C+D+cpclumB8vaiqbquU wxMm6e6AXfbGlc+EtwAmqN3mmfotP4Ii84D3jNQQ/yOVQWd/IlMV2szGJWoQ21wJ7FEx xtec2NbzOcXEtfRkinmAN+OSCWnDCfByBdD0CEw+/w3MhlrKyssdAHkrGSKRjScWHwwq ooC+BQhWjwLie+CPhRHKkBfBUNjmggEvIwP2CUNARNdptWuZbUfWK9aGGJdax0f10dKx Jg3bNn80MO8etWGuqUgp4yjCdi1WxhZdOlQvqmD72g3UgfcYRYYfSsjGC1pJ/cCUD0Sw KxFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=smpWQWty; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id l62-20020a638841000000b005890aa054fcsi1821730pgd.400.2023.10.05.11.31.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 11:31:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=smpWQWty; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id D2305807C570; Thu, 5 Oct 2023 11:31:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231332AbjJESbG (ORCPT + 99 others); Thu, 5 Oct 2023 14:31:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229826AbjJESbE (ORCPT ); Thu, 5 Oct 2023 14:31:04 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00B75A6 for ; Thu, 5 Oct 2023 11:31:02 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-327be5fe4beso1239151f8f.3 for ; Thu, 05 Oct 2023 11:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696530661; x=1697135461; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7Ct+AkMEgp1QkkUYEj6CQZHQ0//yvYcFdWaKg1efiRw=; b=smpWQWty0mBai19eQbSSKcKS6l/c3SxwtK9e7B+E/ef/5Frt83+m+HY37xVXTz+2SB TibMW8GNq0aAbcfg1m6nsZLmX6fdlN8pVXnwEggS5ZfxbQoLAWQoI18Nu30wv5lYEllr ni8n/elv5PNr6ierpgqgw8S5OGz/UimD1w73yU4G0HKYUl4vGLiW6K61mdKTyG4d+X9I aN5Bs05n1hI09w6FfQaNfjvNhxb8+m60GZvFPrzqP7oQcO1of62+OTFb+Rsott/UQQpj 216gdHDmrky1nNl+cb89OLUuEXVv6Wwx7vEI8hCzrvpx6DH6l4so+9TRiCAqaAp1D9hd D6KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696530661; x=1697135461; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7Ct+AkMEgp1QkkUYEj6CQZHQ0//yvYcFdWaKg1efiRw=; b=Dn5Ldksse0D3tcAYmp1Tk5bjilLbW6R5+euJGm8FjHhxBJ7UIiZt+Lv7xvVpS1fAb1 mucjM0lw3Y8w+4/y+S6Au4DIGgqyyIzcUPH1Gao+HA1K1sUMdv/A8aX8xT37c4rh6L2z gi+jo+h/VXu9W2k4ptbZyfQRylPOZhwy5ygbNyBpVnkT/HcRkZ/xWQn16usdb0FP7vYa 3tgKkucEozvhtbqxfqsvrL1ikW4cXJZwfxN/QhfpI58BS729IeeeP0Cfstog6vnJMGKR d6HQDW1wFls5f4Qa11A+VYTMUfjUcChu86Lm2u4vjuITjAQ2/4FNkAqsvtDMTdlu+Rvp 7AUQ== X-Gm-Message-State: AOJu0YymtBcTq7l1X+H+faK1+DLJ+GrgxfjszJaOoEx7ZmtLKdL0iyZ1 iBFeTp/TR/iueo4Xcs05QC+SGFR6Rk10/7CUatuy2w== X-Received: by 2002:adf:f892:0:b0:321:3c37:ec81 with SMTP id u18-20020adff892000000b003213c37ec81mr5105399wrp.10.1696530661284; Thu, 05 Oct 2023 11:31:01 -0700 (PDT) MIME-Version: 1.0 References: <20231004-get_maintainer_change_k-v1-1-ac7ced18306a@google.com> <3dca40b677dd2fef979a5a581a2db91df2c21801.camel@perches.com> <6e13b9b1a964b49079a2f7814c0d65e767cd010a.camel@perches.com> In-Reply-To: <6e13b9b1a964b49079a2f7814c0d65e767cd010a.camel@perches.com> From: Justin Stitt Date: Thu, 5 Oct 2023 11:30:48 -0700 Message-ID: Subject: Re: [PATCH] get_maintainer/MAINTAINERS: confine K content matching to patches To: Joe Perches Cc: linux-kernel@vger.kernel.org, Kees Cook , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 05 Oct 2023 11:31:13 -0700 (PDT) On Thu, Oct 5, 2023 at 11:15=E2=80=AFAM Joe Perches wrote= : > > On Thu, 2023-10-05 at 11:06 -0700, Justin Stitt wrote: > > On Wed, Oct 4, 2023 at 7:40=E2=80=AFPM Joe Perches wr= ote: > > > > > > 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 t= he > > > > 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 ty= po 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 pat= ch > > > > 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 con= tent > > > > 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 pa= tch > > 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. Right, what I'm saying is a patch can arrive in a maintainer's inbox wherein the patch itself has no mention of the keyword (if get_maintainer user opted for --keywords-in-file). Just trying to avoid some cases of the question: "Why is this in my inbox?" > > > 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. > Feel like I'm missing something here. How is K: matching keywords in files without reading them. If my patch touches 10 files then all 10 of those files are scanned for K: matches right?