[ofa-general] Re: [PATCH for-2.6.22] IB/ipoib: fix to_ipoib_neigh access race

Michael S. Tsirkin mst at dev.mellanox.co.il
Mon May 28 21:27:41 PDT 2007


> Quoting Michael S. Tsirkin <mst at dev.mellanox.co.il>:
> Subject: [PATCH for-2.6.22] IB/ipoib: fix to_ipoib_neigh access race
> 
> hard_start_xmit dereferences to_ipoib_neigh when only tx_lock is taken.  This
> would only be safe if all calls that modify *to_ipoib_neigh take tx_lock too.
> Currently this is not always true for ipoib_neigh_free and path_rec_completion,
> which results in memory corruption.  Fix this race, making sure
> path_rec_completion and ipoib_neigh_free are always called under
> tx_lock.
> 
> Signed-off-by: Michael S. Tsirkin <mst at dev.mellanox.co.il>

Could you on this patch please?

-- 
MST



More information about the general mailing list