From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.177 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796280120; b=R241VCGy18nw6+8gXkaZdHdDjPnXgxdXAeAWMkBtermk5srFcxiUpNDQxl+yuycL+Ei6 oCOU/m9QmNSNDCMfkE1Feg0pv1tnqwMfY4yMunMHO5NxSYZyG2BmMKlpJ7wMG+gmlxod1 QfaTR2NUP80bC9H5uYvPaD74fFgoj8xe/k5pRH9GPqnBU2XjKRID+ZOSCdj7pICJEJQR7 nmrb/FgsQubyTDcaatbBMFMfzpCyB9ZnfJzYlrz1ZOdBjt7bKcJO2UJrSwXv4xjwFjf58 BA+OfQYcoMS+Y/T+hkhtO7KcKukB2Ua1Fm8GMDy6XWIGX3Ce427LL/m8PTaeEXWhilA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796280120; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=XNE9xA/uajLaMT3TigstbRUdgUIUj79L5Zd2VhkyjZA=; b=D3Ny/8PvOD5VJm6qU5DqMe1OC9HlxMhNIkfdBOt3WZlYu5LLp6M39+ErwD2iWUBaSqe2 903IfT2tVK1zhiCOn1vCsYGxeHNR8jzSDNHuD/rCuOZxIv+l1XLFwV/bMoS5X9Qt5MlOY GcSWeIvzJ9J8X4l3Jj4q5vH8M+5Rs6Bz+7+szFuBCfVJo9CqUDg3gbViiWxaeqRsPL+68 Wl6dF5DSf+EhyVk95vx29QcG4zd5YH+1psuYrMCsVQ9tfgoWKfmIrBSy+TnAtmG3grd4R FB6x86NL2/xGoFY9IMR+qqMUDmMYrihzw1kJ6z8/wio1/Mv46uxgeO1TM4nu6H2GdIw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=fbE9qgA2; arc=none smtp.remote-ip=209.85.215.177 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D73D606A339 for ; Thu, 3 Dec 2026 06:41:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1D73D606A339 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=fbE9qgA2 Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-cddac941ed1so6309118a12.2 for ; Wed, 02 Dec 2026 22:41:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796280119; x=1796884919; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=XNE9xA/uajLaMT3TigstbRUdgUIUj79L5Zd2VhkyjZA=; b=fbE9qgA2e/9Ji0523i91/s9wKxotXFCtcHtloQOLMKeQAcL+J3kqiNd/r/CI5meeaA S9d+fQkYttguFjHSeKGdGuX1G8xYADhkA6eIB7Ssq7wWuEJaVKJq4yc7ddpE3edtYZKt ps9aGOmofzil/ps7pbC9cY5bGvchhQh9PKT9u7GaODSErfOTAJE+xPXq5P0ExuBWnFca /Qjs/xWCOw+DE6YqvWxdSgwL8ShTEp5/mZ/Prgmb5d9L9scj55c31Q3mO3tOwt0YsMY0 XJmPOOjxuDjKWN7PkK2niunvrAATX72RpEHTXXwbFX+ojsrcIPMT1ccWrAVO3JtvWpsw e1CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796280119; x=1796884919; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=XNE9xA/uajLaMT3TigstbRUdgUIUj79L5Zd2VhkyjZA=; b=sDc0Nh5sjPtDulGtxmmGjY5UnoLZ3Ub9J7r4FWeTGNstjQpt9zAQWy3J1s1Sa8fcbo 5fS1VcKty1kY+IaZo3gEVfS8Ia5yGe1ywxn8f7EpAMG1yjsKZhNAxVTEBTCQsvgMKJ6a oTaHqQFccIC9xfLDfn2nXDYLzQVuKc9CSlnr4Fi2zu8/p6PozUhIwHX8hB5Ej/Lfq4S7 JmDLZLLGNqKPlrRzQo5MihkReYO/emqjw8W8vOOS3Xui5plVQI5R46FzXXwFlFGM9TFT cLuvqqUi0b2W+i1CLQ9SXq0A5qblxRnDwj/lCH/iVslUrSyaszzR5HWGDmkcz2eMyMgg gqnw== X-Forwarded-Encrypted: i=1; AL+hErErQ9IjGI5icgfxs6sWbtTq7oxKsQzsf4/XKcuJ5yf5zv0IIuqseJPoWjw2k5h+3CWm5FqHNCo=@vger.kernel.org X-Gm-Message-State: APuU4Z+LrWWikbxL3bOmsWoGnxwgNafKn/ZAmXLZyFOld4PP++f66dFa ghToeUMByTIhrYNbwhOAUAKftHYXEWXBxSO9wCc8LIWAcXp3oQkUGC+T X-Gm-Gg: AZFdTZcC7NYo9xFbZul8by2pOe2f6hD/Xqy0Zkqud7W5VAtSH22dX1lqlv6oY0fVF1w CGf8evv9raFgRTGvo5zBp8Or0evzuGxm+Psgq9Urf34OUF0Nxivug9jkUYRU0Y4gXcZ52XIZq8O F9Y5YMlZQ2xMeZncW6HBpOuty3xhvcthP9Q/GxdRKlejLOq29ZTFNrvvpEYSPAzFm27QCS1RRPW xkK20nxS1dUkAQB4b1Uf1MxdKq1nU7/3YTWqjSctbXWaVDmjOqLceQj2goVwTp4REn6C8UmTi6e yk3Ek2Lfv7k+a73Ziy/9ByWKVf2SSW7XKyYtX5WXrKwXQWubUB8ehuN1UwUMfz5hvQ2uWpVSYio CFG4RoBGKWdZC7yF5VgDIYoudLpS+YlVdr8t6+OT99W/aMWsWP8LA+rQ6xX7jfPoz9CmJ8qU3sY NizyE5bD9KyAuthunLQheHGNkPtzf6YQZy07xEJGrUqTjO6A18V7iLPt3cW4z/Jym4J0hfMLKyC LuGGM3MV7jEBjlS/CDwU6rs1mzz7T3sB8HaSB0atFnkGrfBLg43zR2XboleRcR1YGpt7XZ3bGpC 7k45VaHMPwJzRGnzuqOQUvfXQpWdVRDhKj1fnR9KA6/vXE/eyEzFPg== X-Received: by 2002:a17:90b:4b05:b0:3a0:516d:9f88 with SMTP id 98e67ed59e1d1-3b41c911c9emr39774439a91.26.1796280119210; Wed, 02 Dec 2026 22:41:59 -0800 (PST) Received: from localhost.localdomain ([123.215.20.15]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c79a37b1sm2770629a91.16.2026.12.02.22.41.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 02 Dec 2026 22:41:58 -0800 (PST) From: Jiwoong Wi To: Bernard Metzler Cc: Jason Gunthorpe , Leon Romanovsky , 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 Message-ID: <20261203064152.16095-1-dwdnlzj@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: References: <20261130061347.50309-1-dwdnlzj@gmail.com> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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