OpenAFS Master Repository branch, openafs-stable-1_4_12_1, updated. openafs-stable-1_4_14-18-g71248e2

Gerrit Code Review gerrit@openafs.org
Tue, 1 Nov 2011 19:35:20 -0700 (PDT)


The following commit has been merged in the openafs-stable-1_4_12_1 branch:
commit 71248e27cc9015b818bcb86dec871cf274f558ae
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.
    
    Reviewed-on: http://gerrit.openafs.org/5618
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Derrick Brashear <shadow@dementix.org>
    (cherry picked from commit 796581621861264a8cfb978cd749546de73825f1)
    
    Change-Id: If812ee59b143ca62d1a539e6428febce9915fcc5
    Reviewed-on: http://gerrit.openafs.org/5747
    Reviewed-by: Derrick Brashear <shadow@dementix.org>
    Tested-by: Derrick Brashear <shadow@dementix.org>

 src/dir/dir.c |   35 +++++++++++++++++++++++------------
 1 files changed, 23 insertions(+), 12 deletions(-)

-- 
OpenAFS Master Repository