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

2018-01-12 Thread r . hering
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 spl

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

2017-12-14 Thread r . hering
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 spl

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

2017-12-11 Thread r . hering
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 spl