From: Jason Gunthorpe <jgg@ziepe.ca>
To: Leon Romanovsky <leon@kernel.org>
Cc: Doug Ledford <dledford@redhat.com>,
Avihai Horon <avihaih@mellanox.com>,
RDMA mailing list <linux-rdma@vger.kernel.org>,
Maor Gottlieb <maorg@mellanox.com>,
Moses Reuben <mosesr@mellanox.com>,
Leon Romanovsky <leonro@mellanox.com>
Subject: Re: [PATCH rdma-next] RDMA/core: Fix invalid memory access in spec_filter_size
Date: Tue, 11 Feb 2020 14:25:01 -0400 [thread overview]
Message-ID: <20200211182501.GA3583@ziepe.ca> (raw)
In-Reply-To: <20200126171500.4623-1-leon@kernel.org>
On Sun, Jan 26, 2020 at 07:15:00PM +0200, Leon Romanovsky wrote:
> From: Avihai Horon <avihaih@mellanox.com>
>
> Add a check that the size specified in the flow spec header doesn't
> cause an overflow when calculating the filter size, and thus prevent
> access to invalid memory.
> The following crash from syzkaller revealed it.
>
> Fixes: 94e03f11ad1f ("IB/uverbs: Add support for flow tag")
> Signed-off-by: Avihai Horon <avihaih@mellanox.com>
> Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
> drivers/infiniband/core/uverbs_cmd.c | 15 +++++++--------
> 1 file changed, 7 insertions(+), 8 deletions(-)
Applied to for-rc, thanks
Jason
prev parent reply other threads:[~2020-02-11 18:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-26 17:15 [PATCH rdma-next] RDMA/core: Fix invalid memory access in spec_filter_size Leon Romanovsky
2020-02-11 18:25 ` Jason Gunthorpe [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=20200211182501.GA3583@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=avihaih@mellanox.com \
--cc=dledford@redhat.com \
--cc=leon@kernel.org \
--cc=leonro@mellanox.com \
--cc=linux-rdma@vger.kernel.org \
--cc=maorg@mellanox.com \
--cc=mosesr@mellanox.com \
/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;
as well as URLs for NNTP newsgroup(s).