Re: [PATCH net] tls: check the right open record in TLS_TX_MAX_PAYLOAD_LEN

From: Jiayuan Chen

Date: Tue Oct 20 2026 - 07:22:51 EST


Hi Sabrina,

Thanks for your reminder. I totally forgot that thread.

I will send a v3 and update the commit message to address Paolo's comment.



On 10/20/26 6:58 PM, Sabrina Dubroca wrote:
2026-10-19, 16:26:25 -0600, Rishikesh Jethwani wrote:
do_tls_setsockopt_tx_payload_len() refuses to change the record size
limit while a record is open, because both TX paths size the record they
are filling against tx_max_payload_len. It looks for the open record
through tls_sw_ctx_tx(), a plain cast of priv_ctx_tx to
struct tls_sw_context_tx.


I guess sashiko will complain the same issue:

https://lore.kernel.org/netdev/20260901031931.1636980-1-kuba@xxxxxxxxxx/


There was already a patch for this
https://lore.kernel.org/all/20260901072927.128688-1-jiayuan.chen@xxxxxxxxx/
with extra locking to address sashiko comments.

Jiayuan, were you going to send a v3 to address Paolo's comment? Or
maybe resend your v2, since it got marked as "changes requested" in
patchwork?