From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net/tls: Fix inverted error codes to avoid endless loop Date: Wed, 13 Dec 2017 13:48:02 -0500 (EST) Message-ID: <20171213.134802.2172030470093276598.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: r.hering@avm.de Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:42632 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752932AbdLMSsD (ORCPT ); Wed, 13 Dec 2017 13:48:03 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: r.hering@avm.de Date: Mon, 11 Dec 2017 19:56:21 +0100 > 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: Robert Hering Your patch is corrupted by your email client, it turned TAB characters into spaces. Please read Documentation/email-clients.txt to fix this. Send a test patch to yourself, and make sure you can actually apply the patch contained in that test email. Do not repost the patch here until you can get such a test patch to work properly. Thank you.