android_kernel_xiaomi_sdm845/drivers/infiniband/ulp/ipoib
Eli Cohen 7343b231f2 IPoIB: Close race in setting mcast->ah
ipoib_mcast_send() tests mcast->ah twice.  If this value is changed
between these two points, we leak an skb.  However,
ipoib_mcast_join_finish() sets mcast->ah with no locking, so it could
race against ipoib_mcast_send().

As a solution, take priv->lock around assignment to mcast->ah thus
making sure ipoib_mcast_send() (which also takes priv->lock) is not in
flight.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2006-03-20 10:08:18 -08:00
..
ipoib_fs.c [IPoIB] add path record information in debugfs 2005-11-10 10:22:49 -08:00
ipoib_ib.c IB: convert from semaphores to mutexes 2006-01-13 14:51:39 -08:00
ipoib_main.c IPoIB: Make sure path is fully initialized before using it 2006-01-17 09:22:05 -08:00
ipoib_multicast.c IPoIB: Close race in setting mcast->ah 2006-03-20 10:08:18 -08:00
ipoib_verbs.c IB: convert from semaphores to mutexes 2006-01-13 14:51:39 -08:00
ipoib_vlan.c IB: convert from semaphores to mutexes 2006-01-13 14:51:39 -08:00
ipoib.h IPoIB: clarify to_ipoib_neigh() 2006-03-20 10:08:16 -08:00
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [PATCH] IB: move include files to include/rdma 2005-08-26 20:37:38 -07:00