Re: [PATCH] perf: fix bug mismatch with -c option definition
From: Frederic Weisbecker
Date: Mon May 17 2010 - 07:29:48 EST
On Mon, May 17, 2010 at 12:04:01PM +0200, Stephane Eranian wrote:
> The -c option defines the user requested sampling period. It was implemented
> using an unsigned int variable but the type of the option was OPT_LONG. Thus,
> the option parser was overwriting memory belonging to other variables, namely
> the mmap_pages leading to a zero page sampling buffer. The bug was exposed
> only when compiling at -O0, probably because the compiler was padding
> variables at higher optimization levels.
>
> This patch fixes this problem by declaring user_interval as u64. This also
> avoids wrap-around issues for large period on 32-bit systems.
>
> Signed-off-by: Stephane Eranian <eranian@xxxxxxxxxx>
Acked-by: Frederic Weisbecker <fweisbec@xxxxxxxxx>
Small detail: could you avoid the spaces in the beginning of
your changelog lines?
May be that's because you use git-show to dump your patches?
In which case I suggest you to use git-format-patch instead.
Thanks.
--
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/