From: Sven Wegener Date: Sat, 8 Dec 2012 14:30:18 +0000 (+0100) Subject: NFSv4: Check for buffer length in __nfs4_get_acl_uncached X-Git-Tag: v3.8-rc1~72^2~19^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d3e91a89b7adbc2831334def9e494dd9892f9af;p=pandora-kernel.git NFSv4: Check for buffer length in __nfs4_get_acl_uncached Commit 1f1ea6c "NFSv4: Fix buffer overflow checking in __nfs4_get_acl_uncached" accidently dropped the checking for too small result buffer length. If someone uses getxattr on "system.nfs4_acl" on an NFSv4 mount supporting ACLs, the ACL has not been cached and the buffer suplied is too short, we still copy the complete ACL, resulting in kernel and user space memory corruption. Signed-off-by: Sven Wegener Cc: stable@kernel.org Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed