Subject: Re: [PATCH PATCH net-next v4 2/8] tls: Abort the connection on decrypt failure

From: Sabrina Dubroca <[email-masked]>
Date: Mon, 23 Mar 2026 11:22:39 +0100

2026-03-17, 11:04:15 -0400, Chuck Lever wrote:
> From: Chuck Lever <[email-masked]>
> 
> recvmsg, read_sock, and splice_read each open-code a
> tls_err_abort() call after tls_rx_one_record() fails.
> Move the abort into tls_rx_one_record() so each receive
> path shares a single decrypt-and-abort sequence.
> 
> Suggested-by: Sabrina Dubroca <[email-masked]>
> Reviewed-by: Hannes Reinecke <[email-masked]>
> Signed-off-by: Chuck Lever <[email-masked]>
> ---
>  net/tls/tls_sw.c | 16 ++++++----------
>  1 file changed, 6 insertions(+), 10 deletions(-)

Reviewed-by: Sabrina Dubroca <[email-masked]>

This introduces a minor change in the unexpected case
tls_check_pending_rekey() fails (because we won't call tls_err_abort
anymore in this case), but I think that's ok.

-- 
Sabrina