Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:39790 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492AbdJLLlg (ORCPT ); Thu, 12 Oct 2017 07:41:36 -0400 Date: Thu, 12 Oct 2017 13:41:44 +0200 From: Greg KH To: Pavel Shilovsky Cc: stable@vger.kernel.org, piastryyy@gmail.com, Steve French Subject: Re: [PATCH] CIFS: Reconnect expired SMB sessions Message-ID: <20171012114144.GB32149@kroah.com> References: <1507764637-2785-1-git-send-email-pshilov@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1507764637-2785-1-git-send-email-pshilov@microsoft.com> Sender: stable-owner@vger.kernel.org List-ID: On Wed, Oct 11, 2017 at 04:30:37PM -0700, Pavel Shilovsky wrote: > Commit 511c54a2f691 ("CIFS: Reconnect expired SMB sessions") upstream. > > According to the MS-SMB2 spec (3.2.5.1.6) once the client receives > STATUS_NETWORK_SESSION_EXPIRED error code from a server it should > reconnect the current SMB session. Currently the client doesn't do > that. This can result in subsequent client requests failing by > the server. The patch adds an additional logic to the demultiplex > thread to identify expired sessions and reconnect them. > > Cc: # 4.4.x-4.11.x > Signed-off-by: Pavel Shilovsky > --- > fs/cifs/cifsglob.h | 2 ++ > fs/cifs/cifssmb.c | 7 +++++++ > fs/cifs/connect.c | 7 +++++++ > fs/cifs/smb2ops.c | 16 ++++++++++++++++ > 4 files changed, 32 insertions(+) Thanks for the backports, now applied. greg k-h