]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xtensa: prevent arbitrary read in ptrace
authorDan Rosenberg <drosenberg@vsecurity.com>
Tue, 26 Jul 2011 00:11:53 +0000 (17:11 -0700)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:21:20 +0000 (11:21 -0400)
commit5a9c2bfb2d4c977b689b68c643a4081b634b7eed
treefbedca199855f054652e10d7e669601715d2549b
parent53c91646f2661704ee95a0dd0a281ed543fd5fda
xtensa: prevent arbitrary read in ptrace

commit 0d0138ebe24b94065580bd2601f8bb7eb6152f56 upstream.

Prevent an arbitrary kernel read.  Check the user pointer with access_ok()
before copying data in.

[akpm@linux-foundation.org: s/EIO/EFAULT/]
Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>
Cc: Christian Zankel <chris@zankel.net>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/xtensa/kernel/ptrace.c