diff options
author | 2009-06-14 02:00:02 -0400 | |
---|---|---|
committer | 2009-06-19 14:58:07 +0200 | |
commit | 9844813f226f6d07e1544e915529cb88f4fcb868 (patch) | |
tree | cdf051b38220c6d99a6f4aac372d7b95eda26c6a /tools | |
parent | Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tyt... (diff) | |
download | linux-9844813f226f6d07e1544e915529cb88f4fcb868.tar.gz linux-9844813f226f6d07e1544e915529cb88f4fcb868.tar.bz2 linux-9844813f226f6d07e1544e915529cb88f4fcb868.zip |
asm-generic: uaccess: add missing access_ok() check to strnlen_user()
The strnlen_user() function was missing a access_ok() check on the pointer
given. We've had cases on Blackfin systems where test programs caused
kernel crashes here because userspace passed up a NULL/-1 pointer and the
kernel gladly attempted to run strlen() on it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions