Linux Documentation
 help / color / mirror / Atom feed
* [PATCH] docs: submitting-patches: Limit backtrace trimming to timestamps
@ 2026-11-26  8:12 Leon Romanovsky
  2026-11-26  9:45 ` Geert Uytterhoeven
  2026-11-26 12:23 ` Mark Brown
  0 siblings, 2 replies; 7+ messages in thread
From: Leon Romanovsky @ 2026-11-26  8:12 UTC (permalink / raw)
  To: Jonathan Corbet, Shuah Khan, Randy Dunlap; +Cc: workflows, linux-doc

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>


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-26 13:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26  8:12 [PATCH] docs: submitting-patches: Limit backtrace trimming to timestamps Leon Romanovsky
2026-11-26  9:45 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox