Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3048a12 authored by r.hering@avm.de's avatar r.hering@avm.de Committed by Greg Kroah-Hartman
Browse files

net/tls: Fix inverted error codes to avoid endless loop




[ Upstream commit 30be8f8dba1bd2aff73e8447d59228471233a3d4 ]

sendfile() calls can hang endless with using Kernel TLS if a socket error occurs.
Socket error codes must be inverted by Kernel TLS before returning because
they are stored with positive sign. If returned non-inverted they are
interpreted as number of bytes sent, causing endless looping of the
splice mechanic behind sendfile().

Signed-off-by: default avatarRobert Hering <r.hering@avm.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 32e57f8c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment