From: Trond Myklebust Date: Fri, 24 Aug 2012 14:59:25 +0000 (-0400) Subject: NFSv4: Fix range checking in __nfs4_get_acl_uncached and __nfs4_proc_set_acl X-Git-Tag: v3.2.89~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6962db53ad0331c5670f5797d212b25ad8338168;p=pandora-kernel.git NFSv4: Fix range checking in __nfs4_get_acl_uncached and __nfs4_proc_set_acl commit 21f498c2f73bd6150d82931f09965826dca0b5f2 upstream. Ensure that the user supplied buffer size doesn't cause us to overflow the 'pages' array. Also fix up some confusion between the use of PAGE_SIZE and PAGE_CACHE_SIZE when calculating buffer sizes. We're not using the page cache for anything here. Signed-off-by: Trond Myklebust Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed