From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1C7914A96; Tue, 11 Jun 2024 18:38:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718131137; cv=none; b=MeB3SbhvM9NU7l58btt8luUgclJxXHW7Ha+FZzeEQVK2rWlHkpJAChjkBGHeVx5Zex8coJIblwLyP5Zr+bprZwioejZ4st8i2WB9RxHca2Uu3r4HTFLdIWyqrl6baAwys53s7+DCqkCJCdHXBUKNDh3MwewVU2h8/tkMeEbAO9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718131137; c=relaxed/simple; bh=QzoeiAlrGSB0mhE4dTqZ/+X4xvaNKPEqzYovZICDW+0=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=uvFgIIb2wKPvBPPKb9flZ1H2wv1NHB/7N/tfedIrrpnouCyPCMI71JXA0xKNSTcc/Ah0YvYkRJOKfCK0z4Q5MbSKkwWfMIE9/CBm6x1mLbfEhp9qP7DaThsWP+eCsrdXJiM9cYqnD59aqAB9auw+JAl55jnKSA+Y7P7hBtcsQwo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=0+HgQZDn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="0+HgQZDn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BD92C2BD10; Tue, 11 Jun 2024 18:38:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1718131136; bh=QzoeiAlrGSB0mhE4dTqZ/+X4xvaNKPEqzYovZICDW+0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=0+HgQZDn/hNWKdnS2pbqsdidfIolhv7J6gSm+5li7h6A2Gq5VWsruKQinCl22rahP 5T52QqTxH2HEQKJNBb3AeE0UNY6r1G1SpAtlxQ/KdDAIwWOuoor0NqRBT4IvfJxL3h joDUk8eynkn/m8H0L9Ag5sybLEK+0tDEXRusCTJo= Date: Tue, 11 Jun 2024 11:38:55 -0700 From: Andrew Morton To: Dan Carpenter Cc: Thorsten Leemhuis , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Arnd Bergmann , Kees Cook , Sasha Levin , Tom Gall , kernel-janitors@vger.kernel.org Subject: Re: [PATCH v5] checkpatch: check for missing Fixes tags Message-Id: <20240611113855.b63a6015b26a0dad49d9f2a7@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 11 Jun 2024 16:43:29 +0300 Dan Carpenter wrote: > This check looks for common words that probably indicate a patch > is a fix. For now the regex is: > > (?:(?:BUG: K.|UB)SAN: |Call Trace:|stable\@|syzkaller)/) > > Why are stable patches encouraged to have a fixes tag? Some people mark > their stable patches as "# 5.10" etc. This is useful but a Fixes tag is > still a good idea. I'd say that "# 5.10" is lame and it would be good if checkpatch could detect this and warn "hey, use a proper Fixes:". Because > It helps people to not cherry-pick buggy patches without also > cherry-picking the fix. seems pretty important.