From: Pavel Emelyanov Date: Sun, 24 Feb 2008 03:57:02 +0000 (-0800) Subject: [NEIGH]: Fix race between neighbor lookup and table's hash_rnd update. X-Git-Tag: v2.6.25-rc3~9^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc4bf5f38cf0a623e6a29f52ec80bfcc56a373c6;p=pandora-kernel.git [NEIGH]: Fix race between neighbor lookup and table's hash_rnd update. The neigh_hash_grow() may update the tbl->hash_rnd value, which is used in all tbl->hash callbacks to calculate the hashval. Two lookup routines may race with this, since they call the ->hash callback without the tbl->lock held. Since the hash_rnd is changed with this lock write-locked moving the calls to ->hash under this lock read-locked closes this gap. Signed-off-by: Pavel Emelyanov Signed-off-by: David S. Miller --- Reading git-diff-tree failed