[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180507022439.265020-1-andre@tomt.net>
Date: Mon, 7 May 2018 04:24:39 +0200
From: Andre Tomt <andre@...t.net>
To: "David S . Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
borisp@...lanox.com, Aviad Yehezkel <aviadye@...lanox.com>,
Dave Watson <davejwatson@...com>
Cc: Andre Tomt <andre@...t.net>
Subject: [PATCH net] 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: c212d2c7fc47 ("net/tls: Don't recursively call push_record during tls_write_space callbacks")
Signed-off-by: Andre Tomt <andre@...t.net>
---
net/tls/tls_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/tls/tls_main.c b/net/tls/tls_main.c
index cc03e00785c7..a02ebdfa0675 100644
--- a/net/tls/tls_main.c
+++ b/net/tls/tls_main.c
@@ -135,6 +135,7 @@ int tls_push_sg(struct sock *sk,
offset -= sg->offset;
ctx->partially_sent_offset = offset;
ctx->partially_sent_record = (void *)sg;
+ ctx->in_tcp_sendpages = false;
return ret;
}
--
2.17.0
Powered by blists - more mailing lists