summaryrefslogtreecommitdiffstats
path: root/include/linux/if_ether.h
diff options
context:
space:
mode:
authorPavel Emelyanov2008-02-24 04:57:02 +0100
committerDavid S. Miller2008-02-24 04:57:02 +0100
commitbc4bf5f38cf0a623e6a29f52ec80bfcc56a373c6 (patch)
tree44c9dab22f5d75d797845b54df07bd6da40bcc7e /include/linux/if_ether.h
parent[RTNL]: Validate hardware and broadcast address attribute for RTM_NEWLINK (diff)
downloadkernel-qcow2-linux-bc4bf5f38cf0a623e6a29f52ec80bfcc56a373c6.tar.gz
kernel-qcow2-linux-bc4bf5f38cf0a623e6a29f52ec80bfcc56a373c6.tar.xz
kernel-qcow2-linux-bc4bf5f38cf0a623e6a29f52ec80bfcc56a373c6.zip
[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/linux/if_ether.h')
0 files changed, 0 insertions, 0 deletions