Linux Documentation
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Jonathan Corbet <corbet@lwn.net>,
	Shuah Khan <skhan@linuxfoundation.org>,
	Randy Dunlap <rdunlap@infradead.org>
Cc: workflows@vger.kernel.org, linux-doc@vger.kernel.org
Subject: [PATCH] docs: submitting-patches: Limit backtrace trimming to timestamps
Date: Thu, 26 Nov 2026 10:12:08 +0200	[thread overview]
Message-ID: <20261126-backtrace-timestamps-v1-1-0a645b25e5ae@kernel.org> (raw)

From: Leon Romanovsky <leonro@nvidia.com>

AI tools tend to trim backtraces too far. Taint flags, module lists and
module names disappear, which hides that an out-of-tree module was
involved or that an in-kernel API was misused, especially a driver API
that is not meant for general use.

Ask authors to remove only the timestamps and drop the example, which
shows a trace reduced to bare function names. Timestamps are the one
part of a dump that adds only noise.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
---
 Documentation/process/submitting-patches.rst | 20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)

diff --git a/Documentation/process/submitting-patches.rst b/Documentation/process/submitting-patches.rst
index 85ba046d66fbf..56b1b38ac59cf 100644
--- a/Documentation/process/submitting-patches.rst
+++ b/Documentation/process/submitting-patches.rst
@@ -763,22 +763,10 @@ phrase``, it is important to be both succinct as well as descriptive.
 Backtraces in commit messages
 """""""""""""""""""""""""""""
 
-Backtraces help document the call chain leading to a problem. However,
-not all backtraces are helpful. For example, early boot call chains are
-unique and obvious. Copying the full dmesg output verbatim, however,
-adds distracting information like timestamps, module lists, register and
-stack dumps.
-
-Therefore, the most useful backtraces should distill the relevant
-information from the dump, which makes it easier to focus on the real
-issue. Here is an example of a well-trimmed backtrace::
-
-  unchecked MSR access error: WRMSR to 0xd51 (tried to write 0x0000000000000064)
-  at rIP: 0xffffffffae059994 (native_write_msr+0x4/0x20)
-  Call Trace:
-  mba_wrmsr
-  update_domains
-  rdtgroup_mkdir
+Backtraces help document the call chain leading to a problem. Remove
+only the timestamps and keep the rest of the dump unchanged. Taint
+flags, module lists and module names show whether an out-of-tree module
+was involved or an in-kernel API was misused.
 
 Commentary
 ^^^^^^^^^^

---
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
change-id: 20261125-backtrace-timestamps-29880a2f1cab

Best regards,
--  
Leon Romanovsky <leon@kernel.org>


             reply	other threads:[~2026-11-26  8:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  8:12 Leon Romanovsky [this message]
2026-11-26  9:45 ` [PATCH] docs: submitting-patches: Limit backtrace trimming to timestamps Geert Uytterhoeven
2026-11-26 10:03   ` Leon Romanovsky
2026-11-26 12:23 ` Mark Brown
2026-11-26 12:59   ` Leon Romanovsky
2026-11-26 13:22     ` Mark Brown
2026-11-26 13:30       ` Leon Romanovsky
2026-11-26 13:52         ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126-backtrace-timestamps-v1-1-0a645b25e5ae@kernel.org \
    --to=leon@kernel.org \
    --cc=corbet@lwn.net \
    --cc=linux-doc@vger.kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=skhan@linuxfoundation.org \
    --cc=workflows@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox