OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-stable-1_6_0pre7-70-g6fb10a8

Gerrit Code Review gerrit@openafs.org
Sat, 13 Aug 2011 19:17:47 -0700 (PDT)


The following commit has been merged in the openafs-stable-1_6_x branch:
commit e32e873b89e2d7f73e17fbc7d1f89501ad5afc2c
Author: Simon Wilkinson <sxw@your-file-system.com>
Date:   Fri Apr 15 19:40:45 2011 +0100

    dir: Protect against circular hash chains
    
    The dir package didn't protect against circular hash chains when
    performing directory lookups. A corrupt directory could therefore
    cause a client or a fileserver to go into an endless loop if that
    directory contained a loop in its hash chain pointers.
    
    Fix this by exiting the lookup if the hash chain has more elements
    than the total number of entries in a directory. This maximum number
    of entries is taken as being (number of entries per page) * (max
    number of pages), which is considerably more than the real maximum
    value.
    (cherry picked from commit bb25bdfcb059fc54a57fd4733ce3184e231ca88d)
    
    Change-Id: I7290dbaad66bccfe3b03a843184464f0681f9429
    Reviewed-on: http://gerrit.openafs.org/5250
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Derrick Brashear <shadow@dementix.org>

 src/dir/dir.c |   40 +++++++++++++++++++++++++++-------------
 1 files changed, 27 insertions(+), 13 deletions(-)

-- 
OpenAFS Master Repository