Commit 080324c3 authored by Andre Tomt's avatar Andre Tomt Committed by David S. Miller

net/tls: Fix connection stall on partial tls record

In the case of writing a partial tls record we forgot to clear the
ctx->in_tcp_sendpages flag, causing some connections to stall.

Fixes: c212d2c7 ("net/tls: Don't recursively call push_record during tls_write_space callbacks")
Signed-off-by: default avatarAndre Tomt <andre@tomt.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 53bc017f
...@@ -135,6 +135,7 @@ int tls_push_sg(struct sock *sk, ...@@ -135,6 +135,7 @@ int tls_push_sg(struct sock *sk,
offset -= sg->offset; offset -= sg->offset;
ctx->partially_sent_offset = offset; ctx->partially_sent_offset = offset;
ctx->partially_sent_record = (void *)sg; ctx->partially_sent_record = (void *)sg;
ctx->in_tcp_sendpages = false;
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment