]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fgraph: Make pid_str size match the comment
authorArtem Sadovnikov <a.sadovnikov@ispras.ru>
Tue, 17 Jun 2025 15:21:09 +0000 (15:21 +0000)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 10 Jul 2025 00:39:00 +0000 (20:39 -0400)
commit437889b926b30093048eba31cd1fde00ca8df316
tree9013dcbe6cd15cb81d7c94049905237d878c07d5
parentd7b8f8e20813f0179d8ef519541a3527e7661d3a
fgraph: Make pid_str size match the comment

The comment above buffer mentions sign, 10 bytes width for number and null
terminator, but buffer itself isn't large enough to hold that much data.

This is a cosmetic change, since PID cannot be negative, other than -1.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Link: https://lore.kernel.org/20250617152110.2530-1-a.sadovnikov@ispras.ru
Signed-off-by: Artem Sadovnikov <a.sadovnikov@ispras.ru>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_functions_graph.c