tracing: Have event format check not flag %p* on __get_dynamic_array()
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 7 Apr 2022 18:56:32 +0000 (14:56 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 25 May 2022 20:57:37 +0000 (16:57 -0400)
commit499f12168aebd6da8fa32c9b7d6203ca9b5eb88d
treea28cf94d36f766a168c9faea3ad671a81092fae9
parentba27d8555867b0e02e15709f4ddb79aec5cf2efc
tracing: Have event format check not flag %p* on __get_dynamic_array()

The print fmt check against trace events to make sure that the format does
not use pointers that may be freed from the time of the trace to the time
the event is read, gives a false positive on %pISpc when reading data that
was saved in __get_dynamic_array() when it is perfectly fine to do so, as
the data being read is on the ring buffer.

Link: https://lore.kernel.org/all/20220407144524.2a592ed6@canb.auug.org.au/
Cc: stable@vger.kernel.org
Fixes: 5013f454a352c ("tracing: Add check of trace event print fmts for dereferencing pointers")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events.c