Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6894230rwd; Tue, 6 Jun 2023 03:37:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mpRSJWGUaJDBMlc/QiGJhpXmKGe1b8+YYih/L6uU0SUNajedt7lqa0umM+nyUoJ4blF/A X-Received: by 2002:a05:622a:110e:b0:3f4:f1be:557 with SMTP id e14-20020a05622a110e00b003f4f1be0557mr1780278qty.1.1686047832931; Tue, 06 Jun 2023 03:37:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686047832; cv=none; d=google.com; s=arc-20160816; b=k0vP9Zfs0D1jkgUmtmIXSJ0qHoEeQoFqfNBNX+C6H1gspvA4KpGwtcXW+GFAcN6G2N H4srvlkAbbtVvnQyUkWaYmldrYiAeMNearyWrplIC9FmoeSG+jb0OUWCsBd/MibJxBRi Ts7k16j4reEWWqgAKbVD7p96Tl/Jf3hDGO+0kXNIa0Quxnj3yxEW9+iDZ0EftxT0orQU waoV0cCO80nA4UIpwsMtgq2fpJoRknyZHVkWNp1E4IXmZSbnZHseJZusS70Z4hIHUA45 XtLEcT1XPBCRGsa+3KZWBzoz7fmViM9TRORLl27PkpkDTCPDGnLHDZstQgcCkOo8/CNr 6ZOw== 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=d9DbfuIiT4I06d5PS8wOy4ytWCoU2Nenaok0wezqSQk=; b=LvBZdj90W7dt2QRZ6M55TKXGVPkWd1TBTMvQhiGe4iCbuNBqreiCb0m563iGwc9WFL xgax5BJMFC5M8Jll3ItdEk5CpESlY2isuZkytYr639/gu18jbpTJgXndnwUbDbZstwEv 5+4FyAqcFMHEZw2Yta5/NLqcbjfWTTJ0Y20KhUNgmo//HQEZ0sW0eyq5V/D4hya3kKEn 6U5mD74Gh24q95dgVSNaf/Zi3PQjdGiTXgkCTxqeiaWAXcyMQgrDxbk1ZYv3NtGLyPRJ v0JJd+kBRDtaXNEjkvHQ2tkZOCEULcL3KGCincsjkGY0fK0UZo/H2TTa9kDFbTgnMugE NR5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EWoJr8Fk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a05622a018c00b003f8b05ee732si2942801qtw.375.2023.06.06.03.36.58; Tue, 06 Jun 2023 03:37:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EWoJr8Fk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235043AbjFFKSw (ORCPT + 99 others); Tue, 6 Jun 2023 06:18:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231959AbjFFKSv (ORCPT ); Tue, 6 Jun 2023 06:18:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C45DE42 for ; Tue, 6 Jun 2023 03:18:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 97ADB624C2 for ; Tue, 6 Jun 2023 10:18:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80E32C433D2; Tue, 6 Jun 2023 10:18:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1686046729; bh=mufbZ9v6TKPPwko+EdRPWegStPKH/y7dsA/paZR8h5M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EWoJr8Fk6Jdr9/AZnwQsMYGcPjMYPgLCBASmKFzsqDHGiQ6npdff3emBAEHtYlQyw cyn2Vtf6KwUafD9XKmCXqq+lKeigSUWeLRj3raIRLY38kGNWjV/x77w4xtpDgrtlMS X0vUw7bxgkgtcBrSncODGsH0dkyttdEhhNDctmbI= Date: Tue, 6 Jun 2023 12:18:46 +0200 From: Greg Kroah-Hartman To: Dan Carpenter Cc: Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , linux-kernel@vger.kernel.org, Arnd Bergmann , Kees Cook , Sasha Levin , Tom Gall Subject: Re: [PATCH] checkpatch: check for missing Fixes tags Message-ID: <2023060628-sizzle-valuables-b782@gregkh> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Tue, Jun 06, 2023 at 11:30:27AM +0300, Dan Carpenter wrote: > This check looks for common words that probably indicate a patch > is a fix. For now the regex is: > > (BUG: KASAN|Call Trace:|syzkaller|stable\@) > > Why are stable patches encouraged to have a fixes tag? Some people mark > their stable patches as "# 5.10" etc. This is not as useful as a Fixes > tag. The Fixes tag helps in review. It helps people to not cherry-pick > buggy patches without also cherry-picking the fix. > > Also if a bug affects the 5.7 kernel some people will round it up to > 5.10+ because 5.7 is not supported on kernel.org. It's possible the Bad > Binder bug was caused by this sort of gap where companies outside of > kernel.org are supporting different kernels from kernel.org? > > Should it be counted as a Fix when a patch just silences harmless > WARN_ON() stack trace. Yes. Definitely. > > Is silencing compiler warnings a fix? It seems unfair to the original > authors, but we use -Werror now, and warnings break the build so let's > just add Fixes tags for those. I tell people that silencing static > checker warnings is not a fix but the rules on this vary by subsystem. > > Is fixing a minor LTP issue (Linux Test Project) a fix? Probably? It's > hard to know what to do if the LTP test has technically always been > broken. > > One clear false positive from this check is when a patch updated the > debug output and the commit message included before and after Call > Traces. Sometimes you should just ignore checkpatch. > > Signed-off-by: Dan Carpenter > --- Nice! Acked-by: Greg Kroah-Hartman