]>
git.openfabrics.org - ~shefty/librdmacm.git/log
Sean Hefty [Wed, 11 Feb 2015 00:52:48 +0000 (16:52 -0800)]
refresh
Sean Hefty [Wed, 11 Feb 2015 00:52:48 +0000 (16:52 -0800)]
refresh
Sean Hefty [Wed, 11 Feb 2015 00:51:35 +0000 (16:51 -0800)]
refresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 00:51:35 +0000 (16:51 -0800)]
refresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 00:51:35 +0000 (16:51 -0800)]
Refresh of rs-idm
Sean Hefty [Wed, 11 Feb 2015 00:51:30 +0000 (16:51 -0800)]
refresh
Sean Hefty [Wed, 11 Feb 2015 00:51:30 +0000 (16:51 -0800)]
refresh
Sean Hefty [Wed, 11 Feb 2015 00:51:20 +0000 (16:51 -0800)]
refresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 00:51:20 +0000 (16:51 -0800)]
refresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 00:51:19 +0000 (16:51 -0800)]
Refresh of rs-idm
Sean Hefty [Wed, 11 Feb 2015 00:50:08 +0000 (16:50 -0800)]
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.
We can avoid this by not freeing the memory when rsockets
no longer reference an index array. This ensures that the
memory is valid, and protects against reading the memory without
adding locking into the read path.
Problem reported by: Sasha Kotchubievsky <sashakot@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Sean Hefty [Wed, 11 Feb 2015 00:50:08 +0000 (16:50 -0800)]
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: Sasha Kotchubievsky <sashakot@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Sean Hefty [Wed, 11 Feb 2015 00:50:08 +0000 (16:50 -0800)]
new
Sean Hefty [Wed, 11 Feb 2015 00:50:08 +0000 (16:50 -0800)]
new
Sean Hefty [Wed, 11 Feb 2015 00:50:08 +0000 (16:50 -0800)]
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:
Sean Hefty [Tue, 10 Feb 2015 20:27:35 +0000 (12:27 -0800)]
rename
Sean Hefty [Tue, 10 Feb 2015 20:27:35 +0000 (12:27 -0800)]
rename
Sean Hefty [Tue, 10 Feb 2015 20:27:20 +0000 (12:27 -0800)]
pop
Sean Hefty [Tue, 10 Feb 2015 20:27:20 +0000 (12:27 -0800)]
pop
Sean Hefty [Tue, 10 Feb 2015 20:25:35 +0000 (12:25 -0800)]
refresh
Sean Hefty [Tue, 10 Feb 2015 20:25:35 +0000 (12:25 -0800)]
refresh
Sean Hefty [Tue, 10 Feb 2015 20:25:35 +0000 (12:25 -0800)]
refresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:25:35 +0000 (12:25 -0800)]
refresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:25:35 +0000 (12:25 -0800)]
Refresh of raccept
Sean Hefty [Tue, 10 Feb 2015 20:24:23 +0000 (12:24 -0800)]
refresh
Sean Hefty [Tue, 10 Feb 2015 20:24:23 +0000 (12:24 -0800)]
refresh
Sean Hefty [Tue, 10 Feb 2015 20:24:23 +0000 (12:24 -0800)]
refresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:24:23 +0000 (12:24 -0800)]
refresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:24:23 +0000 (12:24 -0800)]
Refresh of raccept
Sean Hefty [Tue, 10 Feb 2015 20:24:01 +0000 (12:24 -0800)]
refresh
Sean Hefty [Tue, 10 Feb 2015 20:24:01 +0000 (12:24 -0800)]
refresh
Sean Hefty [Tue, 10 Feb 2015 20:24:01 +0000 (12:24 -0800)]
refresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:24:01 +0000 (12:24 -0800)]
refresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:24:01 +0000 (12:24 -0800)]
Refresh of raccept
Sasha Kotchubievsky [Tue, 10 Feb 2015 20:23:52 +0000 (12:23 -0800)]
rsocket: Return -1 from raccept in case of EAGAIN error
If no pending connections are present for the rsocket
marked as nonblocknig, raccept should fail with the error
EAGAIN or EWOULDBLOCK.
Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Sasha Kotchubievsky [Tue, 10 Feb 2015 20:23:52 +0000 (12:23 -0800)]
rsocket: Return -1 from raccept in case of EAGAIN error
If no pending connections are present for the rsocket
marked as nonblocknig, raccept should fail with the error
EAGAIN or EWOULDBLOCK.
Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Sean Hefty [Tue, 10 Feb 2015 20:23:52 +0000 (12:23 -0800)]
rsocket: Return -1 from raccept in case of EAGAIN error
If no pending connections are present for the rsocket
marked as nonblocknig, raccept should fail with the error
EAGAIN or EWOULDBLOCK.
Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Sean Hefty [Tue, 10 Feb 2015 20:23:52 +0000 (12:23 -0800)]
new
Sean Hefty [Tue, 10 Feb 2015 20:23:52 +0000 (12:23 -0800)]
new
Sean Hefty [Tue, 10 Feb 2015 20:23:52 +0000 (12:23 -0800)]
rsocket: Return -1 from raccept in case of EAGAIN error
If no pending connections are present for the rsocket
marked as nonblocknig, raccept should fail with the error
EAGAIN or EWOULDBLOCK.
Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com>
Sean Hefty [Tue, 10 Feb 2015 20:08:58 +0000 (12:08 -0800)]
commit
Sean Hefty [Tue, 10 Feb 2015 20:08:58 +0000 (12:08 -0800)]
commit
Sean Hefty [Tue, 10 Feb 2015 20:02:04 +0000 (12:02 -0800)]
refresh
Sean Hefty [Tue, 10 Feb 2015 20:02:04 +0000 (12:02 -0800)]
refresh
Sean Hefty [Tue, 10 Feb 2015 20:02:04 +0000 (12:02 -0800)]
refresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:02:04 +0000 (12:02 -0800)]
refresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:02:04 +0000 (12:02 -0800)]
Refresh of setfl
Sean Hefty [Tue, 10 Feb 2015 19:55:16 +0000 (11:55 -0800)]
refresh
Sean Hefty [Tue, 10 Feb 2015 19:55:16 +0000 (11:55 -0800)]
refresh
Sean Hefty [Tue, 10 Feb 2015 19:55:16 +0000 (11:55 -0800)]
refresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 19:55:16 +0000 (11:55 -0800)]
refresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 19:55:15 +0000 (11:55 -0800)]
Refresh of setfl
Sean Hefty [Tue, 10 Feb 2015 19:55:12 +0000 (11:55 -0800)]
rsockets: Fix F_SETFL to use an int rather than long
The flags are specified as an int, not a long. The
rsocket code handles the flag incorrectly.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Sean Hefty [Tue, 10 Feb 2015 19:55:12 +0000 (11:55 -0800)]
rsockets: Fix F_SETFL to use an int rather than long
The flags are specified as an int, not a long. The
rsocket code handles the flag incorrectly.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Sean Hefty [Tue, 10 Feb 2015 19:55:12 +0000 (11:55 -0800)]
new
Sean Hefty [Tue, 10 Feb 2015 19:55:12 +0000 (11:55 -0800)]
new
Sean Hefty [Tue, 10 Feb 2015 19:55:12 +0000 (11:55 -0800)]
rsockets: Fix F_SETFL to use an int rather than long
The flags are specified as an int, not a long. The
rsocket code handles the flag incorrectly.
Sean Hefty [Fri, 6 Feb 2015 05:52:46 +0000 (21:52 -0800)]
commit
Sean Hefty [Fri, 6 Feb 2015 05:52:46 +0000 (21:52 -0800)]
commit
Sean Hefty [Fri, 6 Feb 2015 05:23:14 +0000 (21:23 -0800)]
refresh
Sean Hefty [Fri, 6 Feb 2015 05:23:14 +0000 (21:23 -0800)]
refresh
Sean Hefty [Fri, 6 Feb 2015 05:23:13 +0000 (21:23 -0800)]
refresh (create temporary patch)
Sean Hefty [Fri, 6 Feb 2015 05:23:13 +0000 (21:23 -0800)]
refresh (create temporary patch)
Sean Hefty [Fri, 6 Feb 2015 05:23:13 +0000 (21:23 -0800)]
Refresh of nonblock
Sean Hefty [Fri, 6 Feb 2015 05:17:07 +0000 (21:17 -0800)]
refresh
Sean Hefty [Fri, 6 Feb 2015 05:17:07 +0000 (21:17 -0800)]
refresh
Sean Hefty [Fri, 6 Feb 2015 05:17:07 +0000 (21:17 -0800)]
refresh (create temporary patch)
Sean Hefty [Fri, 6 Feb 2015 05:17:07 +0000 (21:17 -0800)]
refresh (create temporary patch)
Sean Hefty [Fri, 6 Feb 2015 05:17:07 +0000 (21:17 -0800)]
Refresh of nonblock
Sean Hefty [Fri, 6 Feb 2015 05:17:03 +0000 (21:17 -0800)]
rsockets: Fix setting flags in rfctl
The rfcntl() call to set rsocket flags merely OR's in
the updated flags with the existing ones, rather than
replacing them. Also, it does not handle setting an
rsocket from nonblocking mode back to blocking mode.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Sean Hefty [Fri, 6 Feb 2015 05:17:03 +0000 (21:17 -0800)]
rsockets: Fix setting flags in rfctl
The rfcntl() call to set rsocket flags merely OR's in
the updated flags with the existing ones, rather than
replacing them. Also, it does not handle setting an
rsocket from nonblocking mode back to blocking mode.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Sean Hefty [Fri, 6 Feb 2015 05:17:03 +0000 (21:17 -0800)]
new
Sean Hefty [Fri, 6 Feb 2015 05:17:03 +0000 (21:17 -0800)]
new
Sean Hefty [Fri, 6 Feb 2015 05:17:03 +0000 (21:17 -0800)]
rsockets: Fix setting flags in rfctl
The rfcntl() call to set rsocket flags merely OR's in
the updated flags with the existing ones, rather than
replacing them. Also, it does not handle setting an
rsocket from nonblocking mode back to blocking mode.
Sean Hefty [Thu, 22 Jan 2015 20:53:29 +0000 (12:53 -0800)]
commit
Sean Hefty [Thu, 22 Jan 2015 20:53:29 +0000 (12:53 -0800)]
commit
Steve Wise [Mon, 12 Jan 2015 16:57:40 +0000 (10:57 -0600)]
rping: create persistent server threads in DETACHED state
Since the persistent server threads aren't joined, they must be created in
the DETACHED state or resources will not be cleaned up when they exit.
This results in pthread_create() failures after thousands of rping
instances are run against a persistent server.
Also check the return from all calls to pthread_create() so we don't
ignore a thread creation failure.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Sean Hefty [Thu, 22 Jan 2015 20:46:25 +0000 (12:46 -0800)]
import
Sean Hefty [Thu, 22 Jan 2015 20:46:25 +0000 (12:46 -0800)]
import
Sean Hefty [Fri, 14 Nov 2014 18:49:01 +0000 (10:49 -0800)]
commit
Sean Hefty [Fri, 14 Nov 2014 18:49:01 +0000 (10:49 -0800)]
commit
Sean Hefty [Fri, 14 Nov 2014 18:48:18 +0000 (10:48 -0800)]
refresh
Sean Hefty [Fri, 14 Nov 2014 18:48:18 +0000 (10:48 -0800)]
refresh
Sean Hefty [Fri, 14 Nov 2014 18:48:12 +0000 (10:48 -0800)]
refresh (create temporary patch)
Sean Hefty [Fri, 14 Nov 2014 18:48:12 +0000 (10:48 -0800)]
refresh (create temporary patch)
Sean Hefty [Fri, 14 Nov 2014 18:48:12 +0000 (10:48 -0800)]
Refresh of 2-2-rping-ignore-flushed-compl
Hariprasad S [Thu, 6 Nov 2014 09:12:57 +0000 (14:42 +0530)]
rping: ignore flushed completions
Based on original work by Steve Wise <steve@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Sean Hefty [Fri, 14 Nov 2014 18:48:11 +0000 (10:48 -0800)]
pop
Sean Hefty [Fri, 14 Nov 2014 18:48:11 +0000 (10:48 -0800)]
pop
Hariprasad S [Thu, 6 Nov 2014 09:12:57 +0000 (14:42 +0530)]
[2/2] rping: ignore flushed completions
Based on original work by Steve Wise <steve@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Sean Hefty [Fri, 14 Nov 2014 18:48:09 +0000 (10:48 -0800)]
refresh
Sean Hefty [Fri, 14 Nov 2014 18:48:09 +0000 (10:48 -0800)]
refresh
Sean Hefty [Fri, 14 Nov 2014 18:47:43 +0000 (10:47 -0800)]
refresh (create temporary patch)
Sean Hefty [Fri, 14 Nov 2014 18:47:43 +0000 (10:47 -0800)]
refresh (create temporary patch)
Sean Hefty [Fri, 14 Nov 2014 18:47:43 +0000 (10:47 -0800)]
Refresh of 1-2-rping-fixes-race-where-ibv
Sean Hefty [Fri, 14 Nov 2014 18:47:38 +0000 (10:47 -0800)]
pop
Sean Hefty [Fri, 14 Nov 2014 18:47:38 +0000 (10:47 -0800)]
pop
Sean Hefty [Fri, 14 Nov 2014 18:47:25 +0000 (10:47 -0800)]
import
Sean Hefty [Fri, 14 Nov 2014 18:47:25 +0000 (10:47 -0800)]
import
Hariprasad S [Thu, 6 Nov 2014 09:12:57 +0000 (14:42 +0530)]
[2/2] rping: ignore flushed completions
Based on original work by Steve Wise <steve@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>