From: Leon Romanovsky <leon@kernel.org>
To: Roland Dreier <roland@kernel.org>,
Dan Carpenter <dan.carpenter@linaro.org>
Cc: Jason Gunthorpe <jgg@ziepe.ca>,
Christian Brauner <brauner@kernel.org>,
Erick Archer <erick.archer@gmx.com>,
Akiva Goldberger <agoldberger@nvidia.com>,
linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] RDMA/uverbs: Prevent integer overflow issue
Date: Wed, 04 Dec 2024 09:20:02 -0500 [thread overview]
Message-ID: <173332200266.3892997.8099565115676880659.b4-ty@kernel.org> (raw)
In-Reply-To: <b8765ab3-c2da-4611-aae0-ddd6ba173d23@stanley.mountain>
On Sat, 30 Nov 2024 13:06:41 +0300, Dan Carpenter wrote:
> In the expression "cmd.wqe_size * cmd.wr_count", both variables are u32
> values that come from the user so the multiplication can lead to integer
> wrapping. Then we pass the result to uverbs_request_next_ptr() which also
> could potentially wrap. The "cmd.sge_count * sizeof(struct ib_uverbs_sge)"
> multiplication can also overflow on 32bit systems although it's fine on
> 64bit systems.
>
> [...]
Applied, thanks!
[1/1] RDMA/uverbs: Prevent integer overflow issue
https://git.kernel.org/rdma/rdma/c/d0257e089d1bbd
Best regards,
--
Leon Romanovsky <leon@kernel.org>
prev parent reply other threads:[~2024-12-04 14:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-30 10:06 Dan Carpenter
2024-12-04 14:20 ` 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=173332200266.3892997.8099565115676880659.b4-ty@kernel.org \
--to=leon@kernel.org \
--cc=agoldberger@nvidia.com \
--cc=brauner@kernel.org \
--cc=dan.carpenter@linaro.org \
--cc=erick.archer@gmx.com \
--cc=jgg@ziepe.ca \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=roland@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
all inboxes | Powered by JetHome®