OpenVZ Forum


Home » Mailing lists » Devel » [PATCH][NEIGH]: Fix race between neighbor lookup and table's hash_rnd update.
Re: [PATCH][NEIGH]: Fix race between neighbor lookup and table's hash_rnd update. [message #27721 is a reply to message #27671] Sun, 24 February 2008 03:57 Go to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: Pavel Emelyanov <xemul@openvz.org>
Date: Fri, 22 Feb 2008 12:37:03 +0300

> 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>

Applied, thanks.
 
Read Message
Read Message
Previous Topic: [PATCH 10/10] CGroup API files: Make CGROUP_DEBUG default to off
Next Topic: [PATCH] cgroup: fix default notify_on_release setting
Goto Forum:
  


Current Time: Thu Aug 15 22:24:28 GMT 2024

Total time taken to generate the page: 0.02818 seconds