]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:26:37 +0000 (12:26 +0200)
commit4dc89a1ed7fae1dfea2243a21cfedd17b1487d23
treeefd12aac0cbae168fd9b31aa7c7ad97836d357da
parent145c345514dd314eaaea05b1ef6f7b1bdff4bbc2
net/tls: Fix connection stall on partial tls record

BugLink: http://bugs.launchpad.net/bugs/1780858
[ Upstream commit 080324c36ade319f57e505633ab54f6f53289b45 ]

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: c212d2c7fc47 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/tls/tls_main.c