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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS 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 4ACC2C43603 for ; Thu, 19 Dec 2019 10:54:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1C516227BF for ; Thu, 19 Dec 2019 10:54:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576752855; bh=kO6wWgrojfKgr9qs4HKJ1R5/O/onUkIxR/IzrUrQC+c=; h=Subject:To:Cc:From:Date:List-ID:From; b=0O6J8NU0mES3p2cNfv0htaNfGWb5zf8odtY8uq8VE3jcgoZUo3t3rT6v1NvX6kVU3 fHuBrOxYFYZ0r/k8K1qw/wGk4vhGviz6iEymIvfCnMsD0duXLsaNVQu0PLaGzANk/D c3xsE3DiOx1Ts2J//uqfh3kLIl2TAB4N8mZh7c98= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726636AbfLSKyO (ORCPT ); Thu, 19 Dec 2019 05:54:14 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:58255 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726633AbfLSKyO (ORCPT ); Thu, 19 Dec 2019 05:54:14 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 057A722385; Thu, 19 Dec 2019 05:54:14 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 19 Dec 2019 05:54:14 -0500 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=fm1; bh=6tMrUN 9B09eqW85FBoYm88tHGz7GJqaa/WE72YYu8qk=; b=aliui+9r0xIKmtvr3EVTnD IavuwtCmVYkCFHA+sdkI3oxW7+UtLKt0PXtvhCyiICRKur0rQ4Zc1rYGtoqVHO/K i6nG970XWeAFiWc1QzYlPGDHJCdT2U8Xtsdjc2OEGzhXpqxm0Wa2YawkkX1j/CBy V3y5BnEsgkgYCVSiG96lvT30AjkMyo6bvOqMqrChlZIFVIvWsCmCGT/OSnFYgFoX KHa4MHHnVFlKPy74eeB1Re4GF4754xC/gAG/J2zqBH2OLyQrQDKSaCNewvdRM3nh Led47jvrDpIxIZKv7eGVEdh911Qxz15V0pIYdg9ykCFMXMnAfS1BRBgy4CshjckQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdduuddgvdduucetufdoteggodetrfdotf 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 8EDE280059; Thu, 19 Dec 2019 05:54:13 -0500 (EST) Subject: FAILED: patch "[PATCH] cifs: smbd: Return -ECONNABORTED when trasnport is not in" failed to apply to 4.19-stable tree To: longli@microsoft.com, stfrench@microsoft.com Cc: From: Date: Thu, 19 Dec 2019 11:54:12 +0100 Message-ID: <15767528524266@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.19-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 acd4680e2bef2405a0e1ef2149fbb01cce7e116c Mon Sep 17 00:00:00 2001 From: Long Li Date: Wed, 16 Oct 2019 13:51:54 -0700 Subject: [PATCH] cifs: smbd: Return -ECONNABORTED when trasnport is not in connected state The transport should return this error so the upper layer will reconnect. Signed-off-by: Long Li Cc: stable@vger.kernel.org Signed-off-by: Steve French diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c index 5462cf752432..d91f2f60e2df 100644 --- a/fs/cifs/smbdirect.c +++ b/fs/cifs/smbdirect.c @@ -1972,7 +1972,7 @@ static int smbd_recv_buf(struct smbd_connection *info, char *buf, if (info->transport_status != SMBD_CONNECTED) { log_read(ERR, "disconnected\n"); - return 0; + return -ECONNABORTED; } goto again;