From: Steven Rostedt <rostedt@goodmis.org>
To: Chuck Lever III <chuck.lever@oracle.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Next Mailing List <linux-next@vger.kernel.org>
Subject: Re: linux-next: runtime warning after merge of the cel-fixes tree
Date: Thu, 7 Apr 2022 11:50:30 -0400 [thread overview]
Message-ID: <20220407115030.3454b29e@gandalf.local.home> (raw)
In-Reply-To: <20220407114241.0c52b8f0@gandalf.local.home>
On Thu, 7 Apr 2022 11:42:41 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:
> Actually, I found an issue with the above that will not fix it, but the fix
> to that is not that difficult (currently testing it this time).
Take two:
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index e11e167b7809..55d3ed6656ac 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -392,12 +392,6 @@ 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(")) {
- dereference_flags &= ~(1ULL << arg);
- goto next_arg;
- }
-
/* Find the REC-> in the argument */
c = strchr(fmt + i, ',');
r = strstr(fmt + i, "REC->");
@@ -413,7 +407,23 @@ static void test_event_printk(struct trace_event_call *call)
a = strchr(fmt + i, '&');
if ((a && (a < r)) || test_field(r, call))
dereference_flags &= ~(1ULL << arg);
+ } else {
+ /* Check for type casts */
+ if (fmt[i] == '(') {
+ while (fmt[i] && fmt[i] != ')')
+ i++;
+ if (fmt[i])
+ i++;
+ while (isspace(fmt[i]))
+ i++;
+ }
+ /* 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);
+ }
}
+
next_arg:
i--;
arg++;
next prev parent reply other threads:[~2022-04-07 15:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-07 4:45 linux-next: runtime warning after merge of the cel-fixes tree Stephen Rothwell
2022-04-07 13:48 ` Chuck Lever III
2022-04-07 14:54 ` Steven Rostedt
2022-04-07 15:13 ` Steven Rostedt
2022-04-07 15:35 ` Chuck Lever III
2022-04-07 15:42 ` Steven Rostedt
2022-04-07 15:50 ` Steven Rostedt [this message]
2022-04-07 16:05 ` Steven Rostedt
2022-04-07 16:04 ` Chuck Lever III
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220407115030.3454b29e@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=chuck.lever@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox