]> git.openfabrics.org - ~shefty/librdmacm.git/log
~shefty/librdmacm.git
9 years agocommit
Sean Hefty [Fri, 13 Feb 2015 17:44:49 +0000 (09:44 -0800)]
commit

9 years agocommit
Sean Hefty [Fri, 13 Feb 2015 17:44:49 +0000 (09:44 -0800)]
commit

9 years agorefresh
Sean Hefty [Wed, 11 Feb 2015 01:01:38 +0000 (17:01 -0800)]
refresh

9 years agorefresh
Sean Hefty [Wed, 11 Feb 2015 01:01:38 +0000 (17:01 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 01:01:35 +0000 (17:01 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 01:01:35 +0000 (17:01 -0800)]
refresh (create temporary patch)

9 years agoRefresh of rs-idm
Sean Hefty [Wed, 11 Feb 2015 01:01:33 +0000 (17:01 -0800)]
Refresh of rs-idm

9 years agorefresh
Sean Hefty [Wed, 11 Feb 2015 00:52:48 +0000 (16:52 -0800)]
refresh

9 years agorefresh
Sean Hefty [Wed, 11 Feb 2015 00:52:48 +0000 (16:52 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 00:51:35 +0000 (16:51 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 00:51:35 +0000 (16:51 -0800)]
refresh (create temporary patch)

9 years agoRefresh of rs-idm
Sean Hefty [Wed, 11 Feb 2015 00:51:35 +0000 (16:51 -0800)]
Refresh of rs-idm

9 years agorefresh
Sean Hefty [Wed, 11 Feb 2015 00:51:30 +0000 (16:51 -0800)]
refresh

9 years agorefresh
Sean Hefty [Wed, 11 Feb 2015 00:51:30 +0000 (16:51 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 00:51:20 +0000 (16:51 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 00:51:20 +0000 (16:51 -0800)]
refresh (create temporary patch)

9 years agoRefresh of rs-idm
Sean Hefty [Wed, 11 Feb 2015 00:51:19 +0000 (16:51 -0800)]
Refresh of rs-idm

9 years agorsocket: Fix race in indexer map
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>
9 years agorsocket: Fix race in indexer map
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>
9 years agorsocket: Fix race in indexer map
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>
9 years agonew
Sean Hefty [Wed, 11 Feb 2015 00:50:08 +0000 (16:50 -0800)]
new

9 years agonew
Sean Hefty [Wed, 11 Feb 2015 00:50:08 +0000 (16:50 -0800)]
new

9 years agorsocket: Fix race in indexer map
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:

9 years agorename
Sean Hefty [Tue, 10 Feb 2015 20:27:35 +0000 (12:27 -0800)]
rename

9 years agorename
Sean Hefty [Tue, 10 Feb 2015 20:27:35 +0000 (12:27 -0800)]
rename

9 years agopop
Sean Hefty [Tue, 10 Feb 2015 20:27:20 +0000 (12:27 -0800)]
pop

9 years agopop
Sean Hefty [Tue, 10 Feb 2015 20:27:20 +0000 (12:27 -0800)]
pop

9 years agorefresh
Sean Hefty [Tue, 10 Feb 2015 20:25:35 +0000 (12:25 -0800)]
refresh

9 years agorefresh
Sean Hefty [Tue, 10 Feb 2015 20:25:35 +0000 (12:25 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:25:35 +0000 (12:25 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:25:35 +0000 (12:25 -0800)]
refresh (create temporary patch)

9 years agoRefresh of raccept
Sean Hefty [Tue, 10 Feb 2015 20:25:35 +0000 (12:25 -0800)]
Refresh of raccept

9 years agorefresh
Sean Hefty [Tue, 10 Feb 2015 20:24:23 +0000 (12:24 -0800)]
refresh

9 years agorefresh
Sean Hefty [Tue, 10 Feb 2015 20:24:23 +0000 (12:24 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:24:23 +0000 (12:24 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:24:23 +0000 (12:24 -0800)]
refresh (create temporary patch)

9 years agoRefresh of raccept
Sean Hefty [Tue, 10 Feb 2015 20:24:23 +0000 (12:24 -0800)]
Refresh of raccept

9 years agorefresh
Sean Hefty [Tue, 10 Feb 2015 20:24:01 +0000 (12:24 -0800)]
refresh

9 years agorefresh
Sean Hefty [Tue, 10 Feb 2015 20:24:01 +0000 (12:24 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:24:01 +0000 (12:24 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:24:01 +0000 (12:24 -0800)]
refresh (create temporary patch)

9 years agoRefresh of raccept
Sean Hefty [Tue, 10 Feb 2015 20:24:01 +0000 (12:24 -0800)]
Refresh of raccept

9 years agorsocket: Return -1 from raccept in case of EAGAIN error
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>
9 years agorsocket: Return -1 from raccept in case of EAGAIN error
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>
9 years agorsocket: Return -1 from raccept in case of EAGAIN error
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>
9 years agonew
Sean Hefty [Tue, 10 Feb 2015 20:23:52 +0000 (12:23 -0800)]
new

9 years agonew
Sean Hefty [Tue, 10 Feb 2015 20:23:52 +0000 (12:23 -0800)]
new

9 years agorsocket: Return -1 from raccept in case of EAGAIN error
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>
9 years agocommit
Sean Hefty [Tue, 10 Feb 2015 20:08:58 +0000 (12:08 -0800)]
commit

9 years agocommit
Sean Hefty [Tue, 10 Feb 2015 20:08:58 +0000 (12:08 -0800)]
commit

9 years agorefresh
Sean Hefty [Tue, 10 Feb 2015 20:02:04 +0000 (12:02 -0800)]
refresh

9 years agorefresh
Sean Hefty [Tue, 10 Feb 2015 20:02:04 +0000 (12:02 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:02:04 +0000 (12:02 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 20:02:04 +0000 (12:02 -0800)]
refresh (create temporary patch)

9 years agoRefresh of setfl
Sean Hefty [Tue, 10 Feb 2015 20:02:04 +0000 (12:02 -0800)]
Refresh of setfl

9 years agorefresh
Sean Hefty [Tue, 10 Feb 2015 19:55:16 +0000 (11:55 -0800)]
refresh

9 years agorefresh
Sean Hefty [Tue, 10 Feb 2015 19:55:16 +0000 (11:55 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 19:55:16 +0000 (11:55 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 10 Feb 2015 19:55:16 +0000 (11:55 -0800)]
refresh (create temporary patch)

9 years agoRefresh of setfl
Sean Hefty [Tue, 10 Feb 2015 19:55:15 +0000 (11:55 -0800)]
Refresh of setfl

9 years agorsockets: Fix F_SETFL to use an int rather than long
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>
9 years agorsockets: Fix F_SETFL to use an int rather than long
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>
9 years agonew
Sean Hefty [Tue, 10 Feb 2015 19:55:12 +0000 (11:55 -0800)]
new

9 years agonew
Sean Hefty [Tue, 10 Feb 2015 19:55:12 +0000 (11:55 -0800)]
new

9 years agorsockets: Fix F_SETFL to use an int rather than long
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.

9 years agocommit
Sean Hefty [Fri, 6 Feb 2015 05:52:46 +0000 (21:52 -0800)]
commit

9 years agocommit
Sean Hefty [Fri, 6 Feb 2015 05:52:46 +0000 (21:52 -0800)]
commit

9 years agorefresh
Sean Hefty [Fri, 6 Feb 2015 05:23:14 +0000 (21:23 -0800)]
refresh

9 years agorefresh
Sean Hefty [Fri, 6 Feb 2015 05:23:14 +0000 (21:23 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Fri, 6 Feb 2015 05:23:13 +0000 (21:23 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Fri, 6 Feb 2015 05:23:13 +0000 (21:23 -0800)]
refresh (create temporary patch)

9 years agoRefresh of nonblock
Sean Hefty [Fri, 6 Feb 2015 05:23:13 +0000 (21:23 -0800)]
Refresh of nonblock

9 years agorefresh
Sean Hefty [Fri, 6 Feb 2015 05:17:07 +0000 (21:17 -0800)]
refresh

9 years agorefresh
Sean Hefty [Fri, 6 Feb 2015 05:17:07 +0000 (21:17 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Fri, 6 Feb 2015 05:17:07 +0000 (21:17 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Fri, 6 Feb 2015 05:17:07 +0000 (21:17 -0800)]
refresh (create temporary patch)

9 years agoRefresh of nonblock
Sean Hefty [Fri, 6 Feb 2015 05:17:07 +0000 (21:17 -0800)]
Refresh of nonblock

9 years agorsockets: Fix setting flags in rfctl
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>
9 years agorsockets: Fix setting flags in rfctl
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>
9 years agonew
Sean Hefty [Fri, 6 Feb 2015 05:17:03 +0000 (21:17 -0800)]
new

9 years agonew
Sean Hefty [Fri, 6 Feb 2015 05:17:03 +0000 (21:17 -0800)]
new

9 years agorsockets: Fix setting flags in rfctl
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.

9 years agocommit
Sean Hefty [Thu, 22 Jan 2015 20:53:29 +0000 (12:53 -0800)]
commit

9 years agocommit
Sean Hefty [Thu, 22 Jan 2015 20:53:29 +0000 (12:53 -0800)]
commit

9 years agorping: create persistent server threads in DETACHED state
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>
9 years agoimport
Sean Hefty [Thu, 22 Jan 2015 20:46:25 +0000 (12:46 -0800)]
import

9 years agoimport
Sean Hefty [Thu, 22 Jan 2015 20:46:25 +0000 (12:46 -0800)]
import

9 years agocommit
Sean Hefty [Fri, 14 Nov 2014 18:49:01 +0000 (10:49 -0800)]
commit

9 years agocommit
Sean Hefty [Fri, 14 Nov 2014 18:49:01 +0000 (10:49 -0800)]
commit

9 years agorefresh
Sean Hefty [Fri, 14 Nov 2014 18:48:18 +0000 (10:48 -0800)]
refresh

9 years agorefresh
Sean Hefty [Fri, 14 Nov 2014 18:48:18 +0000 (10:48 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Fri, 14 Nov 2014 18:48:12 +0000 (10:48 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Fri, 14 Nov 2014 18:48:12 +0000 (10:48 -0800)]
refresh (create temporary patch)

9 years agoRefresh of 2-2-rping-ignore-flushed-compl
Sean Hefty [Fri, 14 Nov 2014 18:48:12 +0000 (10:48 -0800)]
Refresh of 2-2-rping-ignore-flushed-compl

9 years agorping: ignore flushed completions
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>
9 years agopop
Sean Hefty [Fri, 14 Nov 2014 18:48:11 +0000 (10:48 -0800)]
pop

9 years agopop
Sean Hefty [Fri, 14 Nov 2014 18:48:11 +0000 (10:48 -0800)]
pop

9 years ago[2/2] rping: ignore flushed completions
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>
9 years agorefresh
Sean Hefty [Fri, 14 Nov 2014 18:48:09 +0000 (10:48 -0800)]
refresh

9 years agorefresh
Sean Hefty [Fri, 14 Nov 2014 18:48:09 +0000 (10:48 -0800)]
refresh