From: Trond Myklebust Date: Tue, 14 Aug 2012 21:30:10 +0000 (-0400) Subject: NFSv4: Fix pointer arithmetic in decode_getacl X-Git-Tag: v3.6-rc3~6^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=519d3959e30a98f8e135e7a16647c10af5ad63d5;p=pandora-kernel.git NFSv4: Fix pointer arithmetic in decode_getacl Resetting the cursor xdr->p to a previous value is not a safe practice: if the xdr_stream has crossed out of the initial iovec, then a bunch of other fields would need to be reset too. Fix this issue by using xdr_enter_page() so that the buffer gets page aligned at the bitmap _before_ we decode it. Also fix the confusion of the ACL length with the page buffer length by not adding the base offset to the ACL length... Signed-off-by: Trond Myklebust Cc: stable@vger.kernel.org --- Reading git-diff-tree failed