kernel_optimize_test/arch/powerpc
Peter Zijlstra 6b95ed345b perf, powerpc: Use perf_sample_data_init() for the FSL code
We should use perf_sample_data_init() to initialize struct
perf_sample_data.  As explained in the description of commit dc1d628a
("perf: Provide generic perf_sample_data initialization"), it is
possible for userspace to get the kernel to dereference data.raw,
so if it is not initialized, that means that unprivileged userspace
can possibly oops the kernel.  Using perf_sample_data_init makes sure
it gets initialized to NULL.

This conversion should have been included in commit dc1d628a, but it
got missed.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2010-07-27 22:20:09 +10:00
..
boot
configs
include/asm Merge commit 'kumar/merge' into merge 2010-07-23 13:46:21 +10:00
kernel perf, powerpc: Use perf_sample_data_init() for the FSL code 2010-07-27 22:20:09 +10:00
kvm
lib
math-emu
mm powerpc: Fix erroneous lmb->memblock conversions 2010-07-23 12:56:57 +10:00
oprofile
platforms powerpc: Fix erroneous lmb->memblock conversions 2010-07-23 12:56:57 +10:00
sysdev Merge branch 'lmb-to-memblock' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2010-07-14 17:27:44 -07:00
xmon
Kconfig
Kconfig.debug
Makefile
relocs_check.pl