Received: by 10.223.176.5 with SMTP id f5csp1143229wra; Fri, 2 Feb 2018 11:59:05 -0800 (PST) X-Google-Smtp-Source: AH8x227ElMYH3Ml+jDF817tcnbfkjth4/1TtbWKdX0uMmg1RcTIxaVo1sTsuQ5Z3TI+P7CT18yQs X-Received: by 10.99.185.2 with SMTP id z2mr27797092pge.299.1517601545380; Fri, 02 Feb 2018 11:59:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517601545; cv=none; d=google.com; s=arc-20160816; b=ln0DqWai9QMZdGC8X7s+SpWDpfMs6ihBKqmJhO3CpAYYDT+bjQ9GvvkAQgVuiASCom LuS3AaPBqusXxBpMxhDTttc5NqjKW8Oxt0xaRUSCXy0a4kT4gBAvwv7hHCb9DVzeXs/K Ubde8yXl3jUC0X28Ww+jNCPlyMH+qkvo13e5XJxtFd8b++vZ6aKeGDZQQQ23XvNmVt9M kuXEoF3fsBgJe3KNn2XFJFt3s5MvRXCBnRPCo3kJmw+kCO5URwVWtMLsuPQfZCWTt2Xc Hy++BXokqjMb2ImFgsYYGNv5v5IdOiR45adGhG7CEqp6LcR/V0ApFIoj2fxmZQXLE3+x 4eIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=7bwvNSWbCNpY/Pbt7kHH4vh2YU+TEo7vhS3Nz4N3Ggc=; b=CxENFScOywOWL4on78H+MeBfHbOcwi6mL7gabQHSJsRYrIo0L0ca9H3g+jaJIHHhVN Mj84MaxlZlNdmtKKHWbvxwpmcAfLLVoQmrshqenI8HoNxPVrNWQ3xjP8dtt4+vTQsg8N G7fuzgevKvrO7Fyn1kSjTLrwVOkS89U9p1pwLZ6zx/dEFIJNNAGxbN8sJalPkv7N7P+o pMUSfZTwlXqSUdjJ4/ySvhz9dW6LgFUxa51UDPjiXMXYpQvTmurcRyLwRJlfZKFOfo+d x0oNNCNFHntJHjkinGxdbKOb6RLVLRstJn4lccjBYDvYSnGVUcruuhQfnbTgdSe1YkMn tOMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l26si2356516pfj.401.2018.02.02.11.58.50; Fri, 02 Feb 2018 11:59:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752733AbeBBS3A (ORCPT + 99 others); Fri, 2 Feb 2018 13:29:00 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35100 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752695AbeBBRBZ (ORCPT ); Fri, 2 Feb 2018 12:01:25 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1E78DE61; Fri, 2 Feb 2018 17:01:22 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Vyukov , Trond Myklebust , Anna Schumaker , Sasha Levin Subject: [PATCH 4.4 46/67] SUNRPC: Allow connect to return EHOSTUNREACH Date: Fri, 2 Feb 2018 17:58:15 +0100 Message-Id: <20180202140820.487727094@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180202140815.091718203@linuxfoundation.org> References: <20180202140815.091718203@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Trond Myklebust [ Upstream commit 4ba161a793d5f43757c35feff258d9f20a082940 ] Reported-by: Dmitry Vyukov Signed-off-by: Trond Myklebust Tested-by: Dmitry Vyukov Signed-off-by: Anna Schumaker Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- net/sunrpc/xprtsock.c | 1 + 1 file changed, 1 insertion(+) --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c @@ -2360,6 +2360,7 @@ static void xs_tcp_setup_socket(struct w case -ECONNREFUSED: case -ECONNRESET: case -ENETUNREACH: + case -EHOSTUNREACH: case -EADDRINUSE: case -ENOBUFS: /* retry with existing socket, after a delay */