]> git.baikalelectronics.ru Git - kernel.git/commit
net/tls: Fix connection stall on partial tls record
authorAndre Tomt <andre@tomt.net>
Mon, 7 May 2018 02:24:39 +0000 (04:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 May 2018 03:47:58 +0000 (23:47 -0400)
commit86741b19c32493a30707e84c9ff8ed3c166f8a9b
tree7e6788adfd15c650565938a3afa32b8f524aaebd
parentc4c03a8321eb09d59f72e000ac8c6846e712ceda
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: 00b63988cc51 ("net/tls: Don't recursively call push_record during tls_write_space callbacks")
Signed-off-by: Andre Tomt <andre@tomt.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_main.c