From: Sasha Levin <sashal@kernel.org>
To: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Cc: stable@vger.kernel.org,
Shamir Rabinovitch <shamir.rabinovitch@oracle.com>,
Leon Romanovsky <leonro@mellanox.com>,
Jason Gunthorpe <jgg@mellanox.com>
Subject: Re: [PATCH for 4.4, 4.9, 4.14] RDMA/ucma: ucma_context reference leak in error path
Date: Thu, 24 Sep 2020 19:15:33 -0400 [thread overview]
Message-ID: <20200924231533.GR2431@sasha-vm> (raw)
In-Reply-To: <20200924092449.367288-1-nobuhiro1.iwamatsu@toshiba.co.jp>
On Thu, Sep 24, 2020 at 06:24:49PM +0900, Nobuhiro Iwamatsu wrote:
>From: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
>
>commit ef95a90ae6f4f21990e1f7ced6719784a409e811 upstream.
>
>Validating input parameters should be done before getting the cm_id
>otherwise it can leak a cm_id reference.
>
>Fixes: 6a21dfc0d0db ("RDMA/ucma: Limit possible option size")
>Signed-off-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
>Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
>Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
>[iwamatsu: Backported to 4.4, 4.9 and 4.14: adjust context]
>Signed-off-by: Nobuhiro Iwamatsu (CIP) <nobuhiro1.iwamatsu@toshiba.co.jp>
Queued up, thanks!
--
Thanks,
Sasha
prev parent reply other threads:[~2020-09-24 23:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-24 9:24 [PATCH for 4.4, 4.9, 4.14] RDMA/ucma: ucma_context reference leak in error path Nobuhiro Iwamatsu
2020-09-24 23:15 ` Sasha Levin [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=20200924231533.GR2431@sasha-vm \
--to=sashal@kernel.org \
--cc=jgg@mellanox.com \
--cc=leonro@mellanox.com \
--cc=nobuhiro1.iwamatsu@toshiba.co.jp \
--cc=shamir.rabinovitch@oracle.com \
--cc=stable@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox