From: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Jason Gunthorpe
<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
Cc: Jeff Inman <jti-YOWKrPYUwWM@public.gmane.org>,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: small patches to librdmacm
Date: Wed, 23 Aug 2017 19:59:49 +0300 [thread overview]
Message-ID: <20170823165949.GW1724@mtr-leonro.local> (raw)
In-Reply-To: <20170823164533.GA23928-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 2227 bytes --]
On Wed, Aug 23, 2017 at 10:45:33AM -0600, Jason Gunthorpe wrote:
> On Wed, Aug 23, 2017 at 07:32:17PM +0300, Leon Romanovsky wrote:
>
> > The commit sha1 should be 12 digits and not 7 digits.
>
> The github gui truncates to 7 digits when it detects a hash, the
> commit message has 12.
Thanks, applied.
BTW, do you know how to configure the gui?
>
> commit 39a612257aacd77ed5bdd506968cf4e54bbe63b3
> Author: Jeff Inman <jti-YOWKrPYUwWM@public.gmane.org>
> Date: Tue Aug 22 15:59:42 2017 -0600
>
> rsockets: Fix segfaults when rs is not found in the index
>
> Check for null each time the rs is accessed and return an error code.
>
> Fixes: 0b6aff48ce31 ("librdmacm: Define streaming over RDMA interface (rsockets)")
> Fixes: bb9fcba81acd ("rsocket: Add APIs for direct data placement")
> Signed-off-by: Jeff Inman <jti-YOWKrPYUwWM@public.gmane.org>
> Acked-by: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> Signed-off-by: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
>
> commit 5ac0576d51ddfb9207e5632c71d27d14b3368143
> Author: Jeff Inman <jti-YOWKrPYUwWM@public.gmane.org>
> Date: Tue Aug 22 15:59:18 2017 -0600
>
> rsockets: Fix a race-condition in rs_free()
>
> If rs_free() releases the fd before calling rs_remove(), a second thread in
> rsocket() may acquire the same fd and store its own rs in the corresponding
> index-element. When the first thread then gets around to calling
> rs_remove() it ends up removing the rs of the second thread, and storing a
> NULL there.
>
> Several functions still do not check for NULL after retrieving an rs from
> the index for an open rsocket. Thus, the second thread would get a
> segfault in any of the following functions: rrecv, rrecvfrom, rsend,
> rsendto, rsendv, riomap, riounmap, riowrite.
>
> Fixes: cf7aae3d0cc4 ("rsocket: Index map item is cleaned before it is used in iomapping cleanup")
> Signed-off-by: Jeff Inman <jti-YOWKrPYUwWM@public.gmane.org>
> Acked-by: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> Signed-off-by: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2017-08-23 16:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-22 19:47 small patches to librdmacm Jeff Inman
[not found] ` <C50D9A8A-457A-4DA6-B727-43B77117ED15-YOWKrPYUwWM@public.gmane.org>
2017-08-23 4:29 ` Leon Romanovsky
[not found] ` <20170823042927.GH1724-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-08-23 15:37 ` Jason Gunthorpe
[not found] ` <20170823153728.GB22775-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-08-23 15:39 ` Jeff Inman
2017-08-23 16:32 ` Leon Romanovsky
[not found] ` <20170823163217.GU1724-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-08-23 16:45 ` Jason Gunthorpe
[not found] ` <20170823164533.GA23928-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-08-23 16:59 ` Leon Romanovsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170823165949.GW1724@mtr-leonro.local \
--to=leon-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
--cc=jti-YOWKrPYUwWM@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.