Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2366150pxj; Mon, 10 May 2021 00:48:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3rktLNIC22TL7ggy8tMefn0aBdqdLZ9SDHSa8q+o0uBr9xBuTKnVljdRCsqlznGSttZX8 X-Received: by 2002:a6b:14d2:: with SMTP id 201mr16932637iou.15.1620632908136; Mon, 10 May 2021 00:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620632908; cv=none; d=google.com; s=arc-20160816; b=cqd3fAirdPseejJPtnL/Wp6cUe/Wn7SFCEBoeZ6C+GrCOGrZIN+PokiizTCmtTOs5k +aLzFSRaTBBN+Lm/R1lowAfbehLivCnSVpO3o4L3NerxcvfY3ODsC/pjVHQkjnVe/LoB fTu4kWCw50rYzuWgT0gYhnEcqqLBDj6OpmOR5GEalsXVO7O5tsbddIjUELjEUkTv6aY4 86+br0f8zf/qqhlf6hTnwOeK9s7SSoW7Pi/nBA5diDNTwpAoK/lowoAyhVK6w37syqRq mThKVziv/Nimvt5y0fLYfdIjtFRRaByp1Dx/pzJ9CIf+Hxr4HwjcAvmXabTgCqn19TYZ hKww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XXFXBuv3u4yvkKVPtBBZhElyjtUvcIlTUG/thNqsQU4=; b=d1Xw0cJiFez881hrbuDv4Dh8Glw23jVJ/tXngradf438L9dX9YKN6Ud6qmpETaDlxw U7wAs2ks5FwKUgHKOWJNStUzkIKVPUyolkR1IWLMbWgfpFF+0DRKTSMzINm/muJ6H7EZ M01+8IvYG/PZ9OKnAwAroIQ4hWazvUSytLPfCF49L3yezf2yHp2L0VB5dkfB9LRoeb4t xEZ70VyZv469pFMURrR7a3G1pg/PlpL/GvBp77uCQUquZHoxV8kGM45BDlfXiHOq6hew 6k4r0m68dDwM2250Au/Jlp5qtqVd0J34SM1cUL5QCJDZ0xDLziDNSwEdJPijie6hf7Or XdfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cgMUfS70; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si15191953ild.137.2021.05.10.00.48.15; Mon, 10 May 2021 00:48:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cgMUfS70; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230137AbhEJHrS (ORCPT + 99 others); Mon, 10 May 2021 03:47:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:53098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230045AbhEJHrR (ORCPT ); Mon, 10 May 2021 03:47:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A0D4D6112F; Mon, 10 May 2021 07:46:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620632772; bh=gUYJxsLCToreCgBACfi76iqMzXU4C+HzFNCr/DPbTiA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cgMUfS70HCFT60bypbzxQKGg/Ph1P3q6xdnnAwFsshIME4nWhzeC5gc8fN7/CjR07 Dltk5IawRFC/LH/oBpuQTmeWRqtbc4IUGCxLKxq5Gi49hYqK9HC0ElEPchfMUDlm5d HSzBTV8Ud8n0NVqIA92ux5S1coWDQbIxcYZ5FXYg= Date: Mon, 10 May 2021 09:46:09 +0200 From: Greg Kroah-Hartman To: Shyam Prasad Cc: Salvatore Bonaccorso , Paulo Alcantara , pc , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Aurelien Aptel , Steven French , Sasha Levin Subject: Re: [EXTERNAL] Re: [PATCH 4.19 013/247] cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Sun, May 09, 2021 at 10:16:06AM +0000, Shyam Prasad wrote: > Hi Salvatore, > > Thanks for reminding me. I had to do some reading to reply to this one. > The situation right now is this: > The patch "cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath." has been reverted. Which means that the DFS bug which you originally faced will not be seen. > > Hi Greg, > > Here are the two patches which I'm referring to: > 1. cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath. > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.12&id=a738c93fb1c17e386a09304b517b1c6b2a6a5a8b > This fixed an issue when two cifs mount points shared a common prefix in the path which they mounted from the same server. The patch was marked for CC:stable considering that this fix can be important for some users. > However, there was a dependent change for DFS scenario, which is present in the Linus' mainline tree, but were not marked for CC:stable, so missing from the stable trees. > Due to the missing dependent changes, DFS users faced issues with pre-5.11 kernels, and this patch was reverted in the stable trees. So, you need that a738c93fb1c1 ("cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath.") merged to where exactly? > 2. Due to a major change that went into the 5.11 kernel (the new mount API support), the code differs significantly, and the missing patch cannot be applied to pre-5.11 trees. > Hence, Paulo submitted the attached patch (cifs: fix prefix path in dfs mounts), which fixes this for pre-5.11 kernels. Can you submit this in a proper format (i.e. not dos line ends, and good changelog and most importantly, YOUR signed off by on it saying that the patch came through you? Make this a 2 patch series please, and be specific as to what tree(s) this needs to be backported to, and I will be glad to review it. thnaks, greg k-h