Avoid beyond bounds copy while caching ACL
authorSachin Prabhu <sprabhu@redhat.com>
Tue, 17 Apr 2012 13:36:40 +0000 (14:36 +0100)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 14 May 2012 13:22:53 +0000 (18:22 +0530)
commit040e56933d05b54140131090076e7ece82886ac8
tree40743575c5a2821f04dd4a994284c73bf8031f75
parent69b35ad15b68e82c5504a438483cd37e8a170b0b
Avoid beyond bounds copy while caching ACL

When attempting to cache ACLs returned from the server, if the bitmap
size + the ACL size is greater than a PAGE_SIZE but the ACL size itself
is smaller than a PAGE_SIZE, we can read past the buffer page boundary.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reported-by: Jian Li <jiali@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
fs/nfs/nfs4xdr.c