Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Jiwoong Wi <dwdnlzj@gmail.com>
To: Bernard Metzler <bernard.metzler@linux.dev>
Cc: Jason Gunthorpe <jgg@ziepe.ca>, Leon Romanovsky <leon@kernel.org>,
	linux-rdma@vger.kernel.org, bobtobabz@gmail.com,
	stable@vger.kernel.org
Subject: Re: [PATCH] RDMA/siw: avoid exposing kernel addresses in Read requests
Date: Thu,  3 Dec 2026 15:41:52 +0900	[thread overview]
Message-ID: <20261203064152.16095-1-dwdnlzj@gmail.com> (raw)
In-Reply-To: <e1109575-2e20-41db-9984-2bb01af29aab@linux.dev>

Resending as plain text; the previous copy was rejected by the mailing
lists because it contained an HTML part.

Hi Bernard,

No validation is bypassed. In this case, the RPC-over-RDMA server
initiates the RDMA Read, and the client supplies the data. To
reconstruct an RPC Call containing a Read chunk, svc_rdma_recvfrom()
invokes svc_rdma_process_read_list(), which posts the RDMA Read before
the complete RPC Call can reach svc_authenticate().

Without this patch, SIW constructs the RREQUEST with the local sink SGE
address in SinkTO, so the peer sees that address in the request. The
peer returns the same SinkTO in the RRESPONSE, and
siw_rresp_check_ntoh() accepts it normally. The address is therefore
visible in the RREQUEST itself; no validation needs to be bypassed.

By "unauthenticated", I meant only that RPC authentication had not yet
run. I agree with Leon that SIW is used for controlled testing, so this
does not establish a practical untrusted-peer threat. My original
description overstated the security impact.

The patch was intended only as hardening to avoid placing a kernel
virtual address on the wire, not as a fix for a practical
untrusted-peer attack. If this is not considered useful for SIW, I am
happy to withdraw it.

Thanks,
Jiwoong

  reply	other threads:[~2026-12-03  6:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  6:13 [PATCH] RDMA/siw: avoid exposing kernel addresses in Read requests Jiwoong Wi
2026-12-02  8:16 ` Leon Romanovsky
2026-12-02 14:49 ` Bernard Metzler
2026-12-03  6:41   ` Jiwoong Wi [this message]
2026-12-05 12:32     ` Bernard Metzler

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=20261203064152.16095-1-dwdnlzj@gmail.com \
    --to=dwdnlzj@gmail.com \
    --cc=bernard.metzler@linux.dev \
    --cc=bobtobabz@gmail.com \
    --cc=jgg@ziepe.ca \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --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