]> git.karo-electronics.de Git - linux-beck.git/commit
nfsd4: memory corruption in numeric_name_to_id()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 28 Mar 2012 10:44:59 +0000 (13:44 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 28 Mar 2012 14:10:23 +0000 (10:10 -0400)
commit3af706135bcc06b1519ba50beaf1b47d32d0fc26
tree52ee3c46416e12fae8f9a1f6e7a6faa3cd3416ad
parent92769108f5382a0bdb4c35eb80c183fb7797cfae
nfsd4: memory corruption in numeric_name_to_id()

"id" is type is a uid_t (32 bits) but on 64 bit systems strict_strtoul()
modifies 64 bits of data.  We should use kstrtouint() instead.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4idmap.c