Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,T_DKIMWL_WL_HIGH autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0C16AC28EBD for ; Sun, 9 Jun 2019 09:44:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D8E88208E4 for ; Sun, 9 Jun 2019 09:44:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560073493; bh=a04HSMiUMc25rGTMY7bSIP3YdpQtM/D6LCf9j4sIMXU=; h=Subject:To:Cc:From:Date:List-ID:From; b=b4tSQNaDsHAZaP+XUkQKOz51LTZs1voVOUXHrwrXc8keIEDtHCGFOW1g3BwIBJFwo /QzUBmu5bPVfmRzTwTfJpeMmfNJV3ul2snxcWrMxTU7MFOm36sG/Gmvwazw8wC/8Er 9amKzimfsinibwaR5PdKXYx4Zfwbj3KDCngvrS8U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728034AbfFIJox (ORCPT ); Sun, 9 Jun 2019 05:44:53 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:35469 "EHLO wout5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727979AbfFIJox (ORCPT ); Sun, 9 Jun 2019 05:44:53 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 67F0C3D9; Sun, 9 Jun 2019 05:44:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 09 Jun 2019 05:44:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=/lvF7N Mb9sfcAYSboRV9UXUV9eoXDKbb287UdtSIpbE=; b=CHtVg5i0/akI17abv+ydAi rX+2Uug4jgdjbvkskQ/TYMlGnErkGgeYxThLYIWjiqRkItiO4CtNqBr8fe+Kqier QHv110pNwTbLe2XOcP1+pfqYH1hFk4JbqzFj/gB6Rp4Iw7dSrQPCxbib/NdcedtG KgjLKeIwS0HstpL+FO4RGSvsC/jttN8y0tDV1MF4NrN9n8eE22NeY9M9kDZ56AD1 IPMvv4L5N+8INyPyciZXaTbH3A/uf8h0cc72pCPAvyTauaT84oRDneoKfnq5FYLO TGcySokz2HyzroG7WyPONF26ki+DzeOoWcpOkwLrMC+9+JlPQE3SRHp1YgPvVHXg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehtddgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecukfhppeekfedrkeeirdekledruddtjeenucfrrghrrghmpehmrghilhhfrhhomh epghhrvghgsehkrhhorghhrdgtohhmnecuvehluhhsthgvrhfuihiivgepud X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 6FC728005C; Sun, 9 Jun 2019 05:44:51 -0400 (EDT) Subject: FAILED: patch "[PATCH] SUNRPC fix regression in umount of a secure mount" failed to apply to 4.9-stable tree To: kolga@netapp.com, Anna.Schumaker@Netapp.com Cc: From: Date: Sun, 09 Jun 2019 11:44:39 +0200 Message-ID: <1560073479242@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.9-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From ec6017d9035986a36de064f48a63245930bfad6f Mon Sep 17 00:00:00 2001 From: Olga Kornievskaia Date: Wed, 29 May 2019 10:46:00 -0400 Subject: [PATCH] SUNRPC fix regression in umount of a secure mount If call_status returns ENOTCONN, we need to re-establish the connection state after. Otherwise the client goes into an infinite loop of call_encode, call_transmit, call_status (ENOTCONN), call_encode. Fixes: c8485e4d63 ("SUNRPC: Handle ECONNREFUSED correctly in xprt_transmit()") Signed-off-by: Olga Kornievskaia Cc: stable@vger.kernel.org # v2.6.29+ Signed-off-by: Anna Schumaker diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index d6e57da56c94..94a653be8e25 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -2288,13 +2288,13 @@ call_status(struct rpc_task *task) case -ECONNREFUSED: case -ECONNRESET: case -ECONNABORTED: + case -ENOTCONN: rpc_force_rebind(clnt); /* fall through */ case -EADDRINUSE: rpc_delay(task, 3*HZ); /* fall through */ case -EPIPE: - case -ENOTCONN: case -EAGAIN: break; case -EIO: