diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-12-14 20:38:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 23:58:07 +0100 |
commit | 4bda4f250d21c3e4f2a2da5f4cef829a434a4046 (patch) | |
tree | 2632bc368ceab622cf119ef5aee154617fe43f1c /include | |
parent | [PPP] synchronous tty: convert dead_sem to completion (diff) | |
download | linux-4bda4f250d21c3e4f2a2da5f4cef829a434a4046.tar.xz linux-4bda4f250d21c3e4f2a2da5f4cef829a434a4046.zip |
[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 'include')
0 files changed, 0 insertions, 0 deletions