OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_68-17-gc7b92a3

Gerrit Code Review gerrit@openafs.org
Fri, 18 Dec 2009 12:58:37 -0800 (PST)


The following commit has been merged in the master branch:
commit c7b92a3018044f7aca4d9a77644e5c06ef64d1e9
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Thu Dec 17 14:59:44 2009 -0600

    Do not trust FetchData length from fileservers
    
    Currently the Unix CM implicitly trusts that the length from a FetchData
    request from a fileserver will always be less than the requested length.
    If the fileserver sends more data than requested, we can use up more
    cache space than we intended, possibly exceeding the cacheinfo cache
    limits.
    
    Add a check for this, and return EIO to the caller if the fileserver
    responds with too much data.
    
    Change-Id: I413393a7bacbf207332d7f904cf396c79b77b6b5
    Reviewed-on: http://gerrit.openafs.org/996
    Tested-by: Andrew Deason <adeason@sinenomine.net>
    Reviewed-by: Derrick Brashear <shadow@dementia.org>
    Tested-by: Derrick Brashear <shadow@dementia.org>

 src/afs/afs_fetchstore.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

-- 
OpenAFS Master Repository