From: Xiao Guangrong Date: Tue, 15 Sep 2009 06:44:36 +0000 (+0800) Subject: perf_counter: Fix buffer overflow in perf_copy_attr() X-Git-Tag: v2.6.32-rc1~678^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3e62e35058fc744ac794611f4e79bcd1c5a4b83;p=pandora-kernel.git perf_counter: Fix buffer overflow in perf_copy_attr() If we pass a big size data over perf_counter_open() syscall, the kernel will copy this data to a small buffer, it will cause kernel crash. This bug makes the kernel unsafe and non-root local user can trigger it. Signed-off-by: Xiao Guangrong Acked-by: Peter Zijlstra Acked-by: Paul Mackerras Cc: LKML-Reference: <4AAF37D4.5010706@cn.fujitsu.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed