From: Markus Metzger Date: Wed, 30 Jan 2008 12:32:03 +0000 (+0100) Subject: x86, ptrace: add buffer size checks X-Git-Tag: v2.6.25-rc1~1143^2~482 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cba4b65d359268c40679ca75ac92c0b93cecf6de;p=pandora-kernel.git x86, ptrace: add buffer size checks Pass the buffer size for (most) ptrace commands that pass user-allocated buffers and check that size before accessing the buffer. Unfortunately, PTRACE_BTS_GET already uses all 4 parameters. Commands that access user buffers return the number of bytes or records read or written. Signed-off-by: Markus Metzger Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed