Skip to content

Commit 8e1b8e3

Browse files
atomtgregkh
authored andcommitted
net/tls: Fix connection stall on partial tls record
[ Upstream commit 080324c ] 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: c212d2c ("net/tls: Don't recursively call push_record during tls_write_space callbacks") Signed-off-by: Andre Tomt <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3ac0f3e commit 8e1b8e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/tls/tls_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ int tls_push_sg(struct sock *sk,
108108
offset -= sg->offset;
109109
ctx->partially_sent_offset = offset;
110110
ctx->partially_sent_record = (void *)sg;
111+
ctx->in_tcp_sendpages = false;
111112
return ret;
112113
}
113114

0 commit comments

Comments
 (0)