aboutsummaryrefslogtreecommitdiff
path: root/fs/nfs/read.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2007-12-14 11:38:04 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 14:58:07 -0800
commit4bda4f250d21c3e4f2a2da5f4cef829a434a4046 (patch)
tree2632bc368ceab622cf119ef5aee154617fe43f1c /fs/nfs/read.c
parent5e41fb83216d370d158fe17675af82d12c6c72c9 (diff)
[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 <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/nfs/read.c')
0 files changed, 0 insertions, 0 deletions