mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Zhu Yanjun <zyjzyj2000@gmail.com>, Jason Gunthorpe <jgg@ziepe.ca>,
	 Tristan Madani <tristmd@gmail.com>,
	linux-rdma@vger.kernel.org,  linux-kernel@vger.kernel.org,
	Nicolas Morey <nmorey@suse.com>
Cc: Zhu Yanjun <yanjun.zhu@linux.dev>
Subject: Re: [PATCH v2] RDMA/rxe: Use validated num_sge in local buffer
Date: Mon, 14 Sep 2026 08:10:06 -0400	[thread overview]
Message-ID: <178938780667.974012.344479087887135840.b4-ty@kernel.org> (raw)
In-Reply-To: <20260909160132.1491248-1-nmorey@suse.com>


On Wed, 09 Sep 2026 18:01:31 +0200, Nicolas Morey wrote:
> For both SRQ and non-SRQ receive paths, the WQE is copied into a local
> buffer to provide a kernel-owned, validated copy. While calculating the
> memcpy size from the validated num_sge prevents overflow during the
> copy, memcpy() itself still copies num_sge from shared memory.
> 
> A concurrent userspace modification before or during memcpy() leaves
> an unvalidated num_sge in the local buffer, leading to potential
> out-of-bounds reads in rxe_resp_check_length() and copy_data() causing:
> 
> [...]

Applied, thanks!

[1/1] RDMA/rxe: Use validated num_sge in local buffer
      https://git.kernel.org/rdma/rdma/c/112f2b6925c2d7

Best regards,
-- 
Leon Romanovsky <leon@kernel.org>


      reply	other threads:[~2026-09-14 12:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-09 16:01 Nicolas Morey
2026-09-14 12:10 ` 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=178938780667.974012.344479087887135840.b4-ty@kernel.org \
    --to=leon@kernel.org \
    --cc=jgg@ziepe.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=nmorey@suse.com \
    --cc=tristmd@gmail.com \
    --cc=yanjun.zhu@linux.dev \
    --cc=zyjzyj2000@gmail.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

all inboxes | Powered by JetHome®