summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2024-12-16 21:41:20 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-27 14:02:16 +0100
commit71a613ceac1ad6235e164aea34abcddb258296af (patch)
tree199b32618e87830f544a17e0565389c109723b3f /scripts/stackusage
parent3985cd30472a6a67bfe3f0b42ad23b59fa824033 (diff)
downloadlinux-71a613ceac1ad6235e164aea34abcddb258296af.tar.gz
linux-71a613ceac1ad6235e164aea34abcddb258296af.tar.bz2
linux-71a613ceac1ad6235e164aea34abcddb258296af.zip
tracing: Add missing helper functions in event pointer dereference check
commit 917110481f6bc1c96b1e54b62bb114137fbc6d17 upstream. The process_pointer() helper function looks to see if various trace event macros are used. These macros are for storing data in the event. This makes it safe to dereference as the dereference will then point into the event on the ring buffer where the content of the data stays with the event itself. A few helper functions were missing. Those were: __get_rel_dynamic_array() __get_dynamic_array_len() __get_rel_dynamic_array_len() __get_rel_sockaddr() Also add a helper function find_print_string() to not need to use a middle man variable to test if the string exists. Cc: stable@vger.kernel.org Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Al Viro <viro@ZenIV.linux.org.uk> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: https://lore.kernel.org/20241217024720.521836792@goodmis.org Fixes: 5013f454a352c ("tracing: Add check of trace event print fmts for dereferencing pointers") Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions