Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796019844; b=cIVqITb9qDfDpPhDDf459URQl9s5nwUEU2BC10mcZ4aLqxTMsm2ZuKg3OEBAz/ech7Cr vqa3wAUXegMF/1ayFR+C/qLOHljYIIUaTtKkz9SLDKrlYjv0g48DEEvmm8gBEeTD5nfrD JOlnPheGTe/Nd1Z2+yuvbSDC4XTQwF+lYGocw11Liu5l1iipKwgyojAT2nGg4y7a7Trwb ZglYTvMzLgyTjlD0VaswTJ+qF5e/V2oL2t2Tgxu1u1DUQSm2ee/7XGYOitBKcl+trHAEG qadLa6LkU0MzXFl58Bo5tvnkZok9K7T6NIiBciL0uJMaKGeiZydXfdEXpctat7QtxDQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796019844; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=4r9prwOKDecDD9HqZ2NlCQJvt5uuKlu5BybXOGw4Wwg=; b=i/BIkuaU072j2E/iEE0JyWqNfqyzRSOXlTlPJOlNBsNHEOgttgZSRYiOpgEQPhO1/6uO 2kN+QuCIaM2fBkwrmywtqtjWsPZli9qSiKaEpDuf5QudncpneMMJ5bmrInLChS7io7syq ATZuigDWnbtONZ6AyWOXBe1ftLWAbSIyZZNJfKMKV/XBvnD9QDUcFY5usK0u1AO2TH8l7 86acYF0VKBq487T/14aqkd/8AoDQW4lmDUsvHzM/r6PeUUt0ZVlxdNYxS/3TXBZGslbyp XgudFtOUi/pTtlSNckfnTzdhfG5EukiubpjfkFegWl+f/XqIhTpmhG/1Ln4Fe0TOkLg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=n3uPaSZP; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3007F606A31C for ; Mon, 30 Nov 2026 06:24:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=n3uPaSZP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77D6B1F0089C; Mon, 30 Nov 2026 06:24:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796019843; bh=4r9prwOKDecDD9HqZ2NlCQJvt5uuKlu5BybXOGw4Wwg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=n3uPaSZPJctStDWKfYDxZLqPUNShpcovvWm1/CmfrUzTJZrO7KDxvy92LU1v1SEMV 63DaBpdssnFhZbLeGhKppvwdzZBF7ldc93z/jDzuA9fj2e6dELXN71Xjmti5bqpg7K hQajIP5Nyje1UgQzblYIL0LXwORbAzCGfo3iebwjdzVu5y+hWNMIX+zruJg3bRabat fAFUCY+I6Q6tEcQwoBV82/IJuPIdaBmFV8Xa5gz3y0XuQpGvjVjwQZg+H92Wj+2il7 8PCUC4gQSLPL3qyV3qNjaRp3c0wiobccEimbmf6P5DUM9aCEk0Df6STBC1Vqwsfp4h 2YbmGH67tHNzg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] RDMA/siw: avoid exposing kernel addresses in Read requests Reply-To: sashiko-reviews@lists.linux.dev To: "Jiwoong Wi" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261130061347.50309-1-dwdnlzj@gmail.com> References: <20261130061347.50309-1-dwdnlzj@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 06:24:02 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > siw_qp_prepare_tx() copies the local sink SGE address into the Tagged > Offset of an outgoing RDMA Read Request. For kernel consumers using > virtual DMA, this is a kernel virtual address. An unauthenticated peer > can trigger this disclosure through an RPC-over-RDMA Read chunk before > the server processes the RPC credentials. >=20 > Use a zero-based sink Tagged Offset for Reads on kernel QPs and expect > the same initial offset when receiving the response. The outstanding > Read queue already retains the local SGE, and siw_proc_rresp() uses that > SGE for the local access check and data placement. Keep that address > unchanged and advance the wire offset as response segments arrive. >=20 > RFC 5040 Sections 4.4 and 5.2.2 allow a zero initial Tagged Offset and > require the peer to return Read responses in request order. No peer-side > change is needed. Preserve the existing offsets for userspace QPs and > [ ... ] > the Tobabz team as part of the Best of the Best 15th program. >=20 > Fixes: b9be6f18cf9e ("rdma/siw: transmit path") > Cc: stable@vger.kernel.org > Signed-off-by: Jiwoong Wi Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130061347.5030= 9-1-dwdnlzj@gmail.com?part=3D1