]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
7.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Apr 2026 13:41:15 +0000 (15:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Apr 2026 13:41:15 +0000 (15:41 +0200)
added patches:
checkpatch-add-support-for-assisted-by-tag.patch

queue-7.0/checkpatch-add-support-for-assisted-by-tag.patch [new file with mode: 0644]
queue-7.0/series

diff --git a/queue-7.0/checkpatch-add-support-for-assisted-by-tag.patch b/queue-7.0/checkpatch-add-support-for-assisted-by-tag.patch
new file mode 100644 (file)
index 0000000..d6fd512
--- /dev/null
@@ -0,0 +1,63 @@
+From d1db4118489fffd2b2f612140b7acbb477880839 Mon Sep 17 00:00:00 2001
+From: Sasha Levin <sashal@kernel.org>
+Date: Wed, 11 Mar 2026 17:58:17 -0400
+Subject: checkpatch: add support for Assisted-by tag
+
+From: Sasha Levin <sashal@kernel.org>
+
+commit d1db4118489fffd2b2f612140b7acbb477880839 upstream.
+
+The Assisted-by tag was introduced in
+Documentation/process/coding-assistants.rst for attributing AI tool
+contributions to kernel patches.  However, checkpatch.pl did not recognize
+this tag, causing two issues:
+
+  WARNING: Non-standard signature: Assisted-by:
+  ERROR: Unrecognized email address: 'AGENT_NAME:MODEL_VERSION'
+
+Fix this by:
+1. Adding Assisted-by to the recognized $signature_tags list
+2. Skipping email validation for Assisted-by lines since they use the
+   AGENT_NAME:MODEL_VERSION format instead of an email address
+3. Warning when the Assisted-by value doesn't match the expected format
+
+Link: https://lkml.kernel.org/r/20260311215818.518930-1-sashal@kernel.org
+Signed-off-by: Sasha Levin <sashal@kernel.org>
+Reported-by: Bart Van Assche <bvanassche@acm.org>
+Acked-by: Joe Perches <joe@perches.com>
+Cc: Andy Whitcroft <apw@canonical.com>
+Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
+Cc: Jonathan Corbet <corbet@lwn.net>
+Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
+Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ scripts/checkpatch.pl |   10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+--- a/scripts/checkpatch.pl
++++ b/scripts/checkpatch.pl
+@@ -641,6 +641,7 @@ our $signature_tags = qr{(?xi:
+       Reviewed-by:|
+       Reported-by:|
+       Suggested-by:|
++      Assisted-by:|
+       To:|
+       Cc:
+ )};
+@@ -3105,6 +3106,15 @@ sub process {
+                               }
+                       }
++                      # Assisted-by uses AGENT_NAME:MODEL_VERSION format, not email
++                      if ($sign_off =~ /^Assisted-by:/i) {
++                              if ($email !~ /^\S+:\S+/) {
++                                      WARN("BAD_SIGN_OFF",
++                                           "Assisted-by expects 'AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]' format\n" . $herecurr);
++                              }
++                              next;
++                      }
++
+                       my ($email_name, $name_comment, $email_address, $comment) = parse_email($email);
+                       my $suggested_email = format_email(($email_name, $name_comment, $email_address, $comment));
+                       if ($suggested_email eq "") {
index e4b04cf623203e5665f927885797b5d15eb79746..90d0fca797b4ece9e5b11377d52c9671aae3f68f 100644 (file)
@@ -54,3 +54,4 @@ kvm-sev-disallow-launch_finish-if-vcpus-are-actively-being-created.patch
 kvm-sev-lock-all-vcpus-when-synchronzing-vmsas-for-snp-launch-finish.patch
 kvm-sev-drop-warn-on-large-size-for-kvm_memory_encrypt_reg_region.patch
 mm-call-free_folio-directly-in-folio_unmap_invalidate.patch
+checkpatch-add-support-for-assisted-by-tag.patch