Re: [for-next][PATCH 4/8] ftrace: Reset fgd->hash in ftrace_graph_write()

From: Steven Rostedt
Date: Fri Feb 03 2017 - 09:58:00 EST


On Fri, 3 Feb 2017 23:49:38 +0900
Namhyung Kim <namhyung@xxxxxxxxxx> wrote:

> On Fri, Feb 3, 2017 at 10:40 PM, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> > From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx>
> >
> > fgd->hash is saved and then freed, but is never reset to either
> > ftrace_graph_hash nor ftrace_graph_notrace_hash. But if multiple reads are
> > performed, then the freed hash could be accessed again.
>
> Argh, right. Btw did you mean multiple "write" not "read", no?
>

Argh, right! or "write" I mean.

;-)

-- Steve