Re: [tip:perf/urgent] tracing: Prevent unloadable modules fromusing trace_bprintk()

From: Steven Rostedt
Date: Tue Oct 26 2010 - 11:21:41 EST


On Tue, 2010-10-26 at 08:06 -0700, Linus Torvalds wrote:
> On Tue, Oct 26, 2010 at 3:21 AM, tip-bot for Steven Rostedt
> <srostedt@xxxxxxxxxx> wrote:
> >
> > tracing: Prevent unloadable modules from using trace_bprintk()
>
> I still don't think this patch makes sense.
>
> Some of it is just totally insane. The CONFIG_MODVERSIONS check is
> just crazy. MODVERSIONS has nothing what-so-ever to do with the issue.
>
> Don't do this. It's total voodoo programming.

Yeah, I think Ingo pulled this by mistake (I asked him to do some pull
requests, and this was probably mixed in the real ones). I purposely
pulled it out of my other pull requests so we could debate it more.

The right answer is what Li Zefan said and that is to simply flush the
ring buffer on module removal if the module uses a trace_bprintk(). We
already do this for tracepoints.

-- 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/