From: Mike Frysinger Date: Sun, 14 Jun 2009 06:00:02 +0000 (-0400) Subject: asm-generic: uaccess: add missing access_ok() check to strnlen_user() X-Git-Tag: v2.6.31-rc1~33^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9844813f226f6d07e1544e915529cb88f4fcb868;p=pandora-kernel.git 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 Signed-off-by: Arnd Bergmann --- Reading git-diff-tree failed