From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E5393E9F60; Wed, 3 Jun 2026 16:11:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.195.75.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780503117; cv=none; b=SCQOjuXf9nVcgj+ys/iSRIJG62vBojdHluCx+TRAEBpZ0Fh7NjlZiRHQdAraz4IS74Q6fkYMS0Dv2KEi4MG9UsATuQoerU/bAqsUxGTZI3t20mNLEviD8+d3tOY3cXWlz0gR7YAXDLOHJaFJUixQX+7S3L92SGh4CUXzMVGl0VE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780503117; c=relaxed/simple; bh=HmlL0qqvpijOQOD4o02HHmq3QAAGEgH16ErPWKOs/L0=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=R/242AJeell6bXw5Mk5eLG4MCJ3h2y7yE2iICpT1tCZhYNipzbIzwDzN9ZF8Elq2+CnYRRGqfOU3NP4a3erbtOuNv4Su0l6Nu6TLI273FrdjtcDqL+CTIFSEJMfdrmZfl1NEkmV6NTv+jrR06ea3MlAuM8wuSjPmKNVDysHvELM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=debian.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b=wQVRqAAn; arc=none smtp.client-ip=82.195.75.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b="wQVRqAAn" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Cc:To:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:From:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=yIRToXVv0wy1zHveiEYfzvdmIu/DuGuO9ho2KecgFfA=; b=wQVRqAAnifklIHxfTOQkMEd28U v3NwSzgZn9GWiGICtFLOWepo3nA4l2zE6kdFEgoZWEOZeajnLAqtycnIKs/zk73dN1Q4Q0HNIxDOC iR8x2Kxk8IF/3f0z9YraTHhdVGmu7DZkLHH1EEtbE8jC+c+U5/PoHeZ63nU9mi8HVFiYEj0ehm+kk gIUpFPdyoJvSOySmTnz2yJyHoH+SvxeKpzpzcDcXjACjBtk27HU/KEHcwYOWYFm2ZNsLVN+l9Xawk fD0i88WoJIn21mJgW10drB/GqSsNilcZIMULzyosfzDbh1YqIjKdJ+/jpmNdyDq9u9lw+Pe7G0tem lw32mQqw==; Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1wUoBy-003rAE-2h; Wed, 03 Jun 2026 16:11:43 +0000 From: Breno Leitao Subject: [PATCH net-next 0/2] net: rds: convert rds to getsockopt_iter Date: Wed, 03 Jun 2026 09:11:32 -0700 Message-Id: <20260603-getsock_more-v1-0-43b8d40c8849@debian.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIADRSIGoC/x3M4QqCMBQG0Fe5fL8dTKsRexWRqO3TLuEm2whBf Peg8wDnQGVRVng5UPjVqjnBS98JwvuZFhqN8ILBDs46ezELW83h81hzobm6F++xDzc3R3SCrXD W/d+NSGwmcW+YzvMHzZDXEmgAAAA= X-Change-ID: 20260603-getsock_more-46be8d1c56fd To: Allison Henderson , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, linux-kselftest@vger.kernel.org, Breno Leitao , kernel-team@meta.com X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1792; i=leitao@debian.org; h=from:subject:message-id; bh=HmlL0qqvpijOQOD4o02HHmq3QAAGEgH16ErPWKOs/L0=; b=owEBbQKS/ZANAwAIATWjk5/8eHdtAcsmYgBqIFI5ZoRcBI802SNhhD4Qtl7B9Gb+BaV35ApYR NytHROiXVeJAjMEAAEIAB0WIQSshTmm6PRnAspKQ5s1o5Of/Hh3bQUCaiBSOQAKCRA1o5Of/Hh3 bSfwD/9fzBka2YgDbRozYUD7ERcASa44D7I8AD9R45kYwVqXs808ZIpQU8YMmEmde0CD1Rmh6T0 KEHFyZy+XvEKez4iQOd6pvdd+UnRS6lS6i0m2IMJAncaEA+ALQSMNF9ajzqjGHTQnmIS0YsWgzA wIA31vlRw4/jTpOqt+QDUWI3/aHpwGTuD1SiOjQIDE/IOAKIdouP71RU60v2HE5AbQ88bSRUvWE D9GP6x+KWbCCY8WdAITJ9Imshs33nN0/PA17C9oINE/KM/dep4g8RLzrX3TNGKFuYPlcRmmrulb 53W9Ewz0BsZp+RXufCPNq5EJ0v9m2nKoKEL+GugqSm14GLX/+U/0j5fmcN5anUZIYaJHzjIWnce F+F7CCgJFDkqBDUoeU3c04wM5RWjXOrVi6IJwUAa0kwN2Q4Ta0fNvvJ8M4EqnSdC48OXUO9ekwO jir5rxBh82Kje5mj2/jKdNLTwqQwhAZVuKG6o55Dw69Kut9R9c3vMjgy618B++vWsjce3Zpbffl crQsWTauqRhYTLyO4vHZh0R/kjFz3L4ATKLZEpcyO1yUsB5rKHmvMGcbAXnnhfB73rBdl7/UqjP bw27JY0LcryLW/VfxV4hY2RmF5WjQ3tg6eaI+hd8WsoRbaR5tcIWVHfc5d7lBtRkigTCihIi0iQ jghN6dIcXLckfdw== X-Developer-Key: i=leitao@debian.org; a=openpgp; fpr=AC8539A6E8F46702CA4A439B35A3939FFC78776D X-Debian-User: leitao This series continues the conversion of the remaining proto_ops getsockopt callbacks to the new getsockopt_iter callback introduced in commit 67fab22a7adc ("net: add getsockopt_iter callback to proto_ops"), this time for RDS. RDS is a little more involved than the protocols converted so far, because the RDS_INFO_* options snapshot kernel state directly into the destination buffer: the info producers memcpy into the pages under a spinlock via kmap_atomic() and so must not fault. The conversion preserves that model — it obtains the same page array and starting offset from opt->iter_out with iov_iter_extract_pages(), preallocating the array so the iterator fills it in place, and leaves the rds_info_iterator / rds_info_copy machinery and all producer callbacks unchanged; kernel (ITER_KVEC) buffers remain unsupported on the RDS_INFO path, as before. I've vibe-coded a kselftest exercising both the simple options and the RDS_INFO_* snapshot path, feel free to drop it in case this is not useful. Signed-off-by: Breno Leitao --- Breno Leitao (2): rds: convert to getsockopt_iter selftests: net: rds: add getsockopt() conversion test net/rds/af_rds.c | 36 ++--- net/rds/info.c | 70 +++++----- net/rds/info.h | 3 +- tools/testing/selftests/net/rds/.gitignore | 1 + tools/testing/selftests/net/rds/Makefile | 4 + tools/testing/selftests/net/rds/getsockopt.c | 201 +++++++++++++++++++++++++++ 6 files changed, 266 insertions(+), 49 deletions(-) --- base-commit: b7bee4ca5688e30ca50fbc87b1b8f7eed7006c17 change-id: 20260603-getsock_more-46be8d1c56fd Best regards, -- Breno Leitao