]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: reject "negative" acl lengths
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 26 Mar 2013 18:11:13 +0000 (14:11 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 26 Mar 2013 20:18:27 +0000 (16:18 -0400)
commit81e1f9c240f4b1a8fad3c404518a9ee0e5e1b9b5
tree0095ce868b0da2305045cedfdd8ead602aa12f72
parent44947653e80584c87755f16ffa9d4d7711a06b2c
nfsd4: reject "negative" acl lengths

Since we only enforce an upper bound, not a lower bound, a "negative"
length can get through here.

The symptom seen was a warning when we attempt to a kmalloc with an
excessive size.

Reported-by: Toralf Förster <toralf.foerster@gmx.de>
Cc: stable@kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c