Re: [GIT PULL] ftrace: Fixes for v6.13
From: Steven Rostedt
Date: Mon Dec 16 2024 - 08:34:24 EST
On Sun, 15 Dec 2024 20:24:04 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> > Isn't every single case of '%p' in this context from a TP_printk() situation?
> >
> > IOW, instead of dynamically creating a temporary buffer and adding
> > that 'x' by hand, why wasn't that just a 'sed' script and done
> > statically?
> >
> > In fact, wouldn't *most* of the sanity checking be possible to just do
> > entirely statically instead of at runtime?
> >
> > Yeah, yeah, there's more than a few '%p' users, but
> >
> > git grep 'TP_printk.*%p[^A-Za-z]' | wc
> >
> > shows that it's manageable. That probably misses some multi-line
> > cases, but still - doing this kind of "rewrite constant string at
> > runtime because we didn't do it statically" seems *wrong*.
> >
> > And in this case, that wrongness was literally the cause of the bug.
>
> I'm also OK with that. Should that be done for 6.13 or something to be
> added for 6.14?
One issue with just doing it manually, is that it would need to be
maintained, as one or two "%p" are added per release cycle.
-- Steve