Thread (14 messages) 14 messages, 4 authors, 3d ago

Re: [PATCH net-next v2 2/4] udp: convert udp_lib_getsockopt to sockopt_t

From: Stanislav Fomichev <hidden>
Date: 2026-06-30 18:21:07
Also in: linux-kselftest, lkml

On 06/30, Breno Leitao wrote:
In preparation for converting the proto-layer getsockopt callbacks to the
sockopt_t interface, switch udp_lib_getsockopt() to take a sockopt_t.

The thin udp_getsockopt()/udpv6_getsockopt() wrappers keep their __user
signature for now: they build a user-backed sockopt_t with
sockopt_init_user(), call the helper, and write the returned length back
to optlen. The helper uses copy_to_iter() instead of copy_to_user().
No functional change.

Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help