Received: by 10.223.176.5 with SMTP id f5csp992926wra; Fri, 2 Feb 2018 09:22:39 -0800 (PST) X-Google-Smtp-Source: AH8x224yzWmm9SebGsP1CxobTOa97XRUmek4dT8zCf/5kbLMx8JPicbcRvk2QSeOSSeyq+RO28E0 X-Received: by 10.98.159.139 with SMTP id v11mr40037770pfk.64.1517592159663; Fri, 02 Feb 2018 09:22:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517592159; cv=none; d=google.com; s=arc-20160816; b=z3hQZo9kkeKjKjOwKCkv+6qmS05yM+JhRS5W02ox75rIsSeRk5sXRg3eWqDDNXV6Fw 1AOmkxg4meucGhi/qEjY1a0SxCAKRB1EqDLkKJ/+kaCjS4WtSjqBLlsdq+bVy41fhGF5 ThJ7GSFdQrKNtx39nH/flPXO9fxSF3pWraTlcLd7dBSSNHRNvMlfkUuaDRXPYA1Cp71y M71ot87c34gczT1CKISUZU6MohfmTLkR1BKINxCG1n72tHIstYrHY+rse4b49v3W+mlN GJdhc/8aOS77CXnGODLyPnbbQMwIS4bz8I8KhgdsbbISfhBHyiN+GtfX8q2itcdRKQjE tYYA== 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=5Rk7b6f0Ba0jyvW7X4Rry+9GPwNXSLW4uVHGei82T5M=; b=cmGlXB4mXvHl10QAmde9cO6ESXJZar7tqlYKsG+SNvaQricguHU9yPss0C3w/k+eUR NFbrpVDHLbt6XX2L4M7k3nJKPeShYwM87hsVLwd73r297Fgsxd9H3smTITudS7iKyEqG Hw7nWW79n/EYgsyvOGeNi/QuYHjMNQySlhe4IT9GwbP138KmtQ/O7cJQKoFm5e50nh75 f4u3mMCbYWCZhr+d0d+PaKmN1Re0JlOZ5PpVQ1Nya+MiNf2dvCtPn4T/FyNLmEmF5NRm vArf3axvb8aIiOhX3b22BzoGo2Iqnr89IjR5zJAQaTUijDWjxT1+25+Gpq0mrrpzyP9l i9Uw== 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 n6-v6si2157495plp.562.2018.02.02.09.22.25; Fri, 02 Feb 2018 09:22:39 -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 S1753983AbeBBRUo (ORCPT + 99 others); Fri, 2 Feb 2018 12:20:44 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39192 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753497AbeBBRNC (ORCPT ); Fri, 2 Feb 2018 12:13:02 -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 4A461E27; Fri, 2 Feb 2018 17:13:01 +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.14 102/156] SUNRPC: Allow connect to return EHOSTUNREACH Date: Fri, 2 Feb 2018 17:58:03 +0100 Message-Id: <20180202140844.815058277@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180202140840.242829545@linuxfoundation.org> References: <20180202140840.242829545@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.14-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 @@ -2437,6 +2437,7 @@ static void xs_tcp_setup_socket(struct w case -ECONNREFUSED: case -ECONNRESET: case -ENETUNREACH: + case -EHOSTUNREACH: case -EADDRINUSE: case -ENOBUFS: /*