Re: [PATCH 3/4] tracing: Fix use-after-free in hist_unreg_all/hist_enable_unreg_all

From: Steven Rostedt
Date: Wed Aug 03 2016 - 11:45:26 EST


On Wed, 3 Aug 2016 16:19:53 +0200
Dmitry Vyukov <dvyukov@xxxxxxxxxx> wrote:

> On Wed, Aug 3, 2016 at 3:54 PM, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> > From: Steven Rostedt <rostedt@xxxxxxxxxxx>
> >
> > While running tools/testing/selftests test suite with KASAN, Dmitry
> > Vyukov hit the following use-after-free report:
> >
> > ==================================================================
> > BUG: KASAN: use-after-free in hist_unreg_all+0x1a1/0x1d0 at addr
> > ffff880031632cc0
> > Read of size 8 by task ftracetest/7413
> > ==================================================================
> > BUG kmalloc-128 (Not tainted): kasan: bad access detected
> > ------------------------------------------------------------------
> >
> > This fixes the problem, along with the same problem in
> > hist_enable_unreg_all().
> >
> > Link: http://lkml.kernel.org/r/c3d05b79e42555b6e36a3a99aae0e37315ee5304.1467247517.git.tom.zanussi@xxxxxxxxxxxxxxx
> >
> > Cc: Dmitry Vyukov <dvyukov@xxxxxxxxxx>
>
> s/Cc/Reported-by/ please
>

Wish you posted that back when this was posted (see Link above).
Because now it's in my git tree and tagged for Linus to pull. Too much
work to rebase for a tag change :-/


-- Steve