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=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_MUTT 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 23DC7C169C4 for ; Thu, 31 Jan 2019 07:16:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E668D2087F for ; Thu, 31 Jan 2019 07:16:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548918964; bh=ZAKAZEs6ZrnetfQmfgmUQcyRyVHgUav5Sbo0u6Pli+Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=t7Nd3S2eSsSkkaLXz5tPgVBQ8UjmuHTblw69N9uzoIFiFcVnEOQOLfpMJHz991AHb 0FJWG4stTm3MlS4iYkNN6JoYgnPPCzP38a23pLqJzs9jHdVHFKVpl/VH40LNWXURjL eD5zNuEcxwq4bABxfcZOHpJeC+rZu6tvJ5G8QeRs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725963AbfAaHQD (ORCPT ); Thu, 31 Jan 2019 02:16:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:37878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726013AbfAaHQD (ORCPT ); Thu, 31 Jan 2019 02:16:03 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 60A002087F; Thu, 31 Jan 2019 07:16:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548918962; bh=ZAKAZEs6ZrnetfQmfgmUQcyRyVHgUav5Sbo0u6Pli+Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J8eoRn8bo86yU8fqh0pfnz2uXy5utTqcthocAod4He33A7Iw4RYujqVaV+kA1Ud0P YeAEQNDYVyXls7B4AYf0PZU+HWn7dk3yOXfPG3CTyxFgLgqNpSV4fiOVZm5OqRBg3K XcN5wray5R+FWA8gZ9RWPXpCTWZRL52liZI9Lkxo= Date: Thu, 31 Jan 2019 08:16:00 +0100 From: Greg KH To: Pavel Shilovsky Cc: stable@vger.kernel.org Subject: Re: [PATCH] cifs: Always resolve hostname before reconnecting Message-ID: <20190131071600.GB4500@kroah.com> References: <1548893250-48583-1-git-send-email-pshilov@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1548893250-48583-1-git-send-email-pshilov@microsoft.com> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Jan 30, 2019 at 04:07:30PM -0800, Pavel Shilovsky wrote: > Commit 28eb24ff75c5 ("cifs: Always resolve hostname before reconnecting"). > > In case a hostname resolves to a different IP address (e.g. long > running mounts), make sure to resolve it every time prior to calling > generic_ip_connect() in reconnect. > > This patch needs user space changes of cifs.upcall that set a timeout > value for the "dns_resolver" key. > > Suggested-by: Steve French > Signed-off-by: Paulo Alcantara > Signed-off-by: Steve French > Signed-off-by: Pavel Shilovsky > --- > fs/cifs/connect.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 53 insertions(+) What stable kernel(s) is this to be applied to? thanks, greg k-h