Thread (5 messages) 5 messages, 2 authors, 2025-08-22

Re: [PATCH -next] ftrace: Fix potential warning in trace_printk_seq during ftrace_dump

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2025-08-21 14:51:13
Also in: lkml

On Thu, 21 Aug 2025 09:53:53 +0800
Tengda Wu [off-list ref] wrote:
There remains an edge case that concerns me: if size is 0, setting len to
size - 1 would cause an underflow. Should we handle this edge case?
When the trace_seq is allocated, the size is set to 8K. If size is ever
zero, then there would be no buffer. So no, we should not worry about that
edge case because if it happened then we have a lot of other things to
worry about.

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help