Re: [PATCH net-next v3 6/7] tls: convert getsockopt to sockopt_t
From: Stanislav Fomichev
Date: Mon Jul 27 2026 - 11:39:18 EST
On 07/27, Breno Leitao wrote:
> Continue converting the proto-layer getsockopt callbacks to the sockopt_t
> interface, converting do_tls_getsockopt() and its per-option helpers to
> take a sockopt_t.
>
> The thin tls_getsockopt() wrapper keeps its __user signature for now: it
> builds a user-backed sockopt_t with sockopt_init_user(), calls the helper,
> and writes the returned length back to optlen. The helpers use
> copy_to_iter() instead of copy_to_user(); the NULL optval check in the
> TLS_TX/TLS_RX path is preserved by testing the iterator user buffer.
>
> No functional change.
>
> Reviewed-by: Sabrina Dubroca <sd@xxxxxxxxxxxxxxx>
> Reviewed-by: Joe Damato <joe@xxxxxxx>
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
Acked-by: Stanislav Fomichev <sdf@xxxxxxxxxxx>