]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rsocket: Fix race in indexer map
authorSean Hefty <sean.hefty@intel.com>
Wed, 11 Feb 2015 00:50:08 +0000 (16:50 -0800)
committerSean Hefty <sean.hefty@intel.com>
Wed, 11 Feb 2015 00:50:08 +0000 (16:50 -0800)
commit83ea10c26afa22b27d5b20510cdeaa09c581be91
treecc9fe9e0f61b120af8e519dd3c5c3802a7170a6e
parent5e78ef2974ae364cf7682919e5120a1e1bc2a807
rsocket: Fix race in indexer map

Although insertions and removals of rsockets are protected
against accesses to the index map, when reading the map using
a non-rsocket (i.e. normal fd), the reading of the map may
overlap with the removal of an rsocket.  This can result in
accessing freed memory.

Problem reported by: