From mboxrd@z Thu Jan 1 00:00:00 1970 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 60D9CC28EBD for ; Sun, 9 Jun 2019 09:44:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 30F30208E4 for ; Sun, 9 Jun 2019 09:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560073492; bh=sv/N+hVPKa+QZSyzXy72kPq1N4DbRolBhV8r/xK2SsM=; h=Subject:To:Cc:From:Date:List-ID:From; b=aj8ruf4RAJLG2hRNFimUPRap+gqAQwhKgzJD0nHCqOaW3ZTyPXSe20NTXQei4jNHf Sg1PVXEi1cMUrJz5XqaeZzjiwvmw5pRoMn0URN7nGsdomP5wlD8WwHvKXp+uym95Eo q5XJDP8QS0mtrY52U7h7fg209u7EtEpvpmZbCoEk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727984AbfFIJov (ORCPT ); Sun, 9 Jun 2019 05:44:51 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:59453 "EHLO wout5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727979AbfFIJov (ORCPT ); Sun, 9 Jun 2019 05:44:51 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 98D923D4; Sun, 9 Jun 2019 05:44:50 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 09 Jun 2019 05:44:50 -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=lRYnu0 Gk5iKMIsow8QablQxHk/9CQsrXxlQWvU0w8p0=; b=cQx/S1C9ZBWWW1hT0HnExV KjUF6Pk1OoVO4bVV2cWv+P5FvpUpO67H9YjCbpVDYZsiSAexBQedfjEZeLYoBSMz iPIdojy4NhTabfcSXWiR0lpA9Orw9SWNzcUG7JvitCRuJnHqrX7Ia+uA6hGklOcG BvPhvWaAIy81JfbgAgYsDo3bXt+o8fzgy/LEjSXWy+eYVcfibcdtoAaFsWdwULdR yBTOB0P1vermcR8kINe+s/Dc7U5N/LO5MN3Noo/HIQf+fK0TAtaPE1k28yzud99i K1gXbenoLXWVVBTeooMn/G2iHix0p4824XWy3M/lVAc6j61qcFVs92/EL9xxS3Rw == 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 6D231380087; Sun, 9 Jun 2019 05:44:49 -0400 (EDT) Subject: FAILED: patch "[PATCH] SUNRPC fix regression in umount of a secure mount" failed to apply to 4.14-stable tree To: kolga@netapp.com, Anna.Schumaker@Netapp.com Cc: From: Date: Sun, 09 Jun 2019 11:44:39 +0200 Message-ID: <1560073479187217@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.14-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: