diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-02-23 19:57:02 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-23 19:57:02 -0800 |
commit | bc4bf5f38cf0a623e6a29f52ec80bfcc56a373c6 (patch) | |
tree | 44c9dab22f5d75d797845b54df07bd6da40bcc7e /include/asm-m32r/Kbuild | |
parent | 1840bb13c22f5b8fd2e242e36c8d6ea3f312be67 (diff) |
[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 <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-m32r/Kbuild')
0 files changed, 0 insertions, 0 deletions