From: Pavel Emelyanov Date: Fri, 14 Dec 2007 19:38:04 +0000 (-0800) Subject: [XFRM]: Fix potential race vs xfrm_state(only)_find and xfrm_hash_resize. X-Git-Tag: v2.6.25-rc1~1162^2~1080 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bda4f250d21c3e4f2a2da5f4cef829a434a4046;p=pandora-kernel.git [XFRM]: Fix potential race vs xfrm_state(only)_find and xfrm_hash_resize. The _find calls calculate the hash value using the xfrm_state_hmask, without the xfrm_state_lock. But the value of this mask can change in the _resize call under the state_lock, so we risk to fail in finding the desired entry in hash. I think, that the hash value is better to calculate under the state lock. Signed-off-by: Pavel Emelyanov Signed-off-by: David S. Miller --- Reading git-diff-tree failed