From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.49 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796280120; b=YLB+5I39qu59IIiZLdVmJRqrq3gyhW86WqMqtn7hJxCO0pQKhyjCEvHE0CUZuGESuGZG cauCZA5zjEa8vWlexkvq8dQbl7YGKd3OkLVq7/w7x71rqXh9mE8A4tNUIvSL4V0R+qSCh K6QMuIl5q5yWsZ2DbTryGZCSj3REfh03+TKdNvbmVhZvWEDE57O2xyc4sPHqT8e4/wCVh VF2fhriegZvpiqVaRtO6Fpdn6Izi6VZ/DM4qCDv0QzqBh9IyFz+SoeteEpjTcdpeqodrh qm496H09923T03skvJvhkdfwNJsGTg7syHDWQwoJYEDxazZ46d1RyWjUGPJOer/cPvg== 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=zpSgHwWSc/OACXrlWqMDk1p/ZWTcef9ppjjDXugxTQRKBul2c9mER/mCJVGH7jh4188A YVwIXsdM7szbKO8E5s23LE2n6NjP7R8nMiVy4bx/h9r+OaI7yVRe8PUMAAWI7WxBfE7FX ywzqH6Hc1cfbRwEt5iWlzBw8Y46tiLgaSg72wauck473AFC/EX+3IxXjARvNCKXTIG0fU F4CfME0Kv2E3U6G/kL1xCiq5D34544qaqlWLYXoQdr6ucyBaEd8ronUtEVUS2BKEnAc7J FtI4glf1y3negIYqGOpaPhLoe72uZ+BVrkf8/24LfidVsYZ2QfBNJY6wO7K2LHkEqbQ== 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.216.49 Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) (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 18190606A338 for ; Thu, 3 Dec 2026 06:41:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 18190606A338 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-pj1-f49.google.com with SMTP id 98e67ed59e1d1-3b41e5a1719so5899930a91.3 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=ir0P+dqtqW23qtmsi6EQ0IPZLg61KEzaM8elKh+jKjwUaM6tVg09h5I2ZgurBhGYa5 X+0DMox/DxVDNJa6FkHmx6SD5otr2puQaSkbfZ2Z7ditDynZno7B2sT1GZGpBWNBZ66U 4De+AQfJUp35d87NFA4eWVu6L457FXju3Zlz8SrJE6kKIrSYsYP6b2D0N0u7lcKEfaOy q61LjVj6uCjnPr6C+vDpVX+/bLDkf0Fn030SPRUoFRUyhYygRrHN8c5lxwzQ07iNM0J6 BQvdirwiMsOWum7Kmp1BWb2Xx0VcjyirbbLGYGDMTlvVTf4N3Sv0vFjLuH81lYWhVlvA ihCw== X-Forwarded-Encrypted: i=1; AL+hErE36e87s01pX+p/IhZp9gth+7vdyN+4PMuj1pNyLLRRzg0zvWx2lR0VGQfqfg5tPHRC7uT8/uj016W2@vger.kernel.org X-Gm-Message-State: APuU4Z8MKICn83vGf2vitCsnQ+ZlcPIsNdufljQdipBgi+3YrY+VdHpn OBbC+Yoh5IRtpCxUWcZCvgHG/vb3v0r6Hv9Z9rLgVbxnWR55t/MjLE0b X-Gm-Gg: AZFdTZeyQv1H8b/VqvAA+ElQepI20zen9DPEwHkMQCeIeqyjSAnqvr9ckifV3wTfjOX H+wYD7LdxPUY4PsDtdC4dax4bo92Tl7WiXK46wRNZ27z6jW/qbQ0rHfV0H/uZtYSdqTTjgFmSDj hSYTdfftc7qxcHBgBWaj4Of3KOyLk9KSkWL10UKudgJfxDg1vK3207yrquGrY1UMv03M7a+5u4A u9wCUc96KPmLmloysAW0KKETxcjIZngrEBZBWJVZZjJLg+VaZC1B8aLK4lRkXGWPIptWcABVM4i hxrq10Nw8O15Xb2Ceqmny/smQP57nsdGHndemBjfR7h3mu4zxUW9yUzvON6hDBirkwBqqnyQVaT 62/eHqw4qabSUD8BzAJMOnl27Fz6jCG0m2kV/LEIckIiBu4SEl2JJYzQYSYwiOKDiweYR3LHTfS z8taDymRasNMxF2tkmP37soyc4CK8a8QUjt8L9ny6aYgvR5m7BSICNgZzCKHgYMENQesbdZkrKq rqM5kzxXp+Ofkn4i/JxY26QxDdykZlvtXf5n28hZXBdNNLfokc5vJ9dckyQrQBVqYNbcfyONVjk DX1QBw445I1J0xYr4EgvkFMX0zDfYLTvHyW++VKJGoMR0wEOaIuF3Q== 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: linux-rdma@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