]> git.baikalelectronics.ru Git - kernel.git/commit
Avoid beyond bounds copy while caching ACL
authorSachin Prabhu <sprabhu@redhat.com>
Tue, 17 Apr 2012 13:36:40 +0000 (14:36 +0100)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 27 Apr 2012 18:09:53 +0000 (14:09 -0400)
commit6db7754cfb32e5a6110bb50244d7d89d2154aabc
treed4bdbde63624df6e970751f46fd6fe0dacb8718c
parentc0187ee418d2ba82eeaf862728bad3f70b0b9691
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