]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] Fix keyctl usage of strnlen_user()
authorDavi Arnaut <davi.arnaut@gmail.com>
Fri, 3 Feb 2006 11:04:46 +0000 (03:04 -0800)
committerChris Wright <chrisw@sous-sol.org>
Fri, 10 Feb 2006 07:20:11 +0000 (23:20 -0800)
commit330d460744b92d00d5114079fcfc8e547d7ac143
tree6728a9e229e747b45b473aee2aa56c7f62245cab
parent7c32e5eb497d0b52a858d0ac78fe97c7515ff512
[PATCH] Fix keyctl usage of strnlen_user()

In the small window between strnlen_user() and copy_from_user() userspace
could alter the terminating `\0' character.

Signed-off-by: Davi Arnaut <davi.arnaut@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
security/keys/keyctl.c