Re: [PATCH v2][GIT PULL] tracing: Prevent unloadable modules fromusing trace_bprintk()
From: Steven Rostedt
Date: Fri Oct 22 2010 - 09:51:10 EST
On Fri, 2010-10-22 at 10:05 +0200, Ingo Molnar wrote:
> * Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>
> >
> > Ingo,
> >
> > This is based off of my core-2 branch. I'm moved this patch after that
> > so if anyone has any objections, I can change this patch without holding
> > off the previous one.
> >
> > Note, I made the TRACE_BPRINTK_ALLOWED change since it looks better.
>
> Hm, it still looks rather fundamentally ugly, messy and assymetric. Please work out
> some better solution with the module folks. If there's really no sane solution then
> we better remove this 'speedup' API, it's just not worth it.
If something doesn't work, then I say we just prevent all modules from
using it. Why punish kernel code. The API is already dynamic, since it
only uses the speed up if the format is static. We could just add no
modules too.
But that said, I think we do have a solution that Li Zefan pointed out
(and something I'm ashamed about not coming up with, since it was indeed
the obvious solution).
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/