Re: linux-next: runtime warning after merge of the cel-fixes tree

From: Steven Rostedt
Date: Thu Apr 07 2022 - 11:13:26 EST


On Thu, 7 Apr 2022 10:54:46 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> Hmm, I know we added code to handle "__get_sockaddr()" but I guess this
> should also be fine for "__get_dynamic_array()" as well.

Does the below patch fix it?

(not even compiled tested)

-- Steve

diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index e11e167b7809..043b80f3e19a 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -392,8 +392,9 @@ static void test_event_printk(struct trace_event_call *call)
if (!(dereference_flags & (1ULL << arg)))
goto next_arg;

- /* Check for __get_sockaddr */;
- if (str_has_prefix(fmt + i, "__get_sockaddr(")) {
+ /* Check for __get_sockaddr or __get_dynamic_array */;
+ if (str_has_prefix(fmt + i, "__get_sockaddr(") ||
+ str_has_prefix(fmt + i, "__get_dynamic_array(")) {
dereference_flags &= ~(1ULL << arg);
goto next_arg;
}