[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1324481022.5916.81.camel@gandalf.stny.rr.com>
Date: Wed, 21 Dec 2011 10:23:42 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Jiri Olsa <jolsa@...hat.com>
Cc: fweisbec@...il.com, mingo@...hat.com, paulus@...ba.org,
acme@...stprotocols.net, a.p.zijlstra@...llo.nl,
linux-kernel@...r.kernel.org, aarapov@...hat.com
Subject: Re: [PATCH 2/8] ftrace: Fix possible NULL dereferencing in
__ftrace_hash_rec_update
On Wed, 2011-12-21 at 12:48 +0100, Jiri Olsa wrote:
> We need to check the existence of the other_hash before
> we touch its count variable.
>
> This issue is hit only when non global ftrace_ops is used.
> The global ftrace_ops is initialized with empty hashes.
>
As this wasn't the first time this bug showed up, I fixed this by this
patch:
https://lkml.org/lkml/2011/12/21/197
So you can remove this patch as well.
-- Steve
> Signed-off-by: Jiri Olsa <jolsa@...hat.com>
> ---
> kernel/trace/ftrace.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
> index 09007c0..7eb702f 100644
> --- a/kernel/trace/ftrace.c
> +++ b/kernel/trace/ftrace.c
> @@ -1372,7 +1372,8 @@ static void __ftrace_hash_rec_update(struct ftrace_ops *ops,
> if (filter_hash && in_hash && !in_other_hash)
> match = 1;
> else if (!filter_hash && in_hash &&
> - (in_other_hash || !other_hash->count))
> + (in_other_hash ||
> + !other_hash || !other_hash->count))
> match = 1;
> }
> if (!match)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists