Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2225266imm; Thu, 18 Oct 2018 11:00:17 -0700 (PDT) X-Google-Smtp-Source: ACcGV602FRC3iN6IlLvfWgTD7L1eaIUW32UUigXXyiYjVGde0+Gt44OURK/vs3UApvjbUs6jiyLr X-Received: by 2002:a62:be1a:: with SMTP id l26-v6mr32150261pff.204.1539885617053; Thu, 18 Oct 2018 11:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539885617; cv=none; d=google.com; s=arc-20160816; b=ZdtApqG+lMkkHXlCEoAV/lmkgILns+bG5rwNrEzfuCwxWQ2VMvEpgAY74EPb66rdkp ZUExEQmFcCGQWk/EMtbzkTjz4qmHxjdiDVPrUWr9CW9j86JmdlnHnqtyJVy8/CfMWhCA qo33eP227ElWeU4zLsPU6zui92p6sHVLpBHKy6f/7A+OrzMUOeGK7+8ngJ6RLsVMv90k 3NA7u4SsTet8+1fFLF3yQKEY2W8M/gRr7HwUgSezt2ZCqomtxcjwysPURyy8aVDXPE0q 0it0bcPu5kFhjkdPgLLgbwmgqWSUL3PBFAUnKxje6Y9FvLumNSVkF1TaJHOSn7aLhpL1 w4BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=c6SuUczLRdzrKDIK6BAuK2I1Aj/geuw+y1ZeixljwvE=; b=LAGTrCxNeqofDA7ghFPSXfdZbCC/ldx5ABwnmZcVrAXQSr9eTtlmLgVK8GyqPJq/gs 7XJsX4sGKRHG/HLg1UZyOB6F9HFuVl+IxlVo43nHdlgNqk4Hzi9CTCSpFQcTLpfotWVw 30U0qnOSOjHMJccN+WJnslEKsjMg/o62b2HyJyUFoDx+70B9UI/rCOJ1mbkdr9KAVi+3 4dMZZ951steeK4RtHukn00/je1hRTl7ty6d571s6E/UfmWMliisxv/q09900x41WkwJE Je0b3sPN24XYT/gzx9hyabsQvyTLCM6pKFwXOl8Qh+EhAq/fLKAts7b/TBBvBsREbnzD DOJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Gpk6aQ35; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6-v6si23312643plm.393.2018.10.18.11.00.01; Thu, 18 Oct 2018 11:00:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Gpk6aQ35; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729105AbeJSCAs (ORCPT + 99 others); Thu, 18 Oct 2018 22:00:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:48460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728562AbeJSCAr (ORCPT ); Thu, 18 Oct 2018 22:00:47 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (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 6447D21476; Thu, 18 Oct 2018 17:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539885522; bh=NStqahxxvCHk1uCQcvBffyXkTSg1UWt4e+KXMCUf/gw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gpk6aQ35NhHlNReatGIbL76le0xi2i/fyOTwfg7rPyLKBAYeojJK1CtHDfEyncGiI fULdcY7rUOj4nHdd03VICDPtdzQF3Qc+5+HPghsaeuj06BnSzoBRIaM0KZRR7DpB6C NXDdUPSSkpNbZKoIqe8mH2lQiHhL2XHtzKEMI9fs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Amir Goldstein , Miklos Szeredi , Christoph Hellwig , Sasha Levin Subject: [PATCH 4.18 50/53] Revert "vfs: fix freeze protection in mnt_want_write_file() for overlayfs" Date: Thu, 18 Oct 2018 19:54:43 +0200 Message-Id: <20181018175425.165598762@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018175416.561567978@linuxfoundation.org> References: <20181018175416.561567978@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Greg Kroah-Hartman This reverts commit 5e1002ab5c9bde81a0c1eed12f243987e98f7bd0 which was commit a6795a585929d94ca3e931bc8518f8deb8bbe627 upstream. Turns out this causes problems and was to fix a patch only in the 4.19 and newer tree. Reported-by: Amir Goldstein Cc: Miklos Szeredi Cc: Christoph Hellwig Cc: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- fs/namespace.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) --- a/fs/namespace.c +++ b/fs/namespace.c @@ -446,10 +446,10 @@ int mnt_want_write_file_path(struct file { int ret; - sb_start_write(file_inode(file)->i_sb); + sb_start_write(file->f_path.mnt->mnt_sb); ret = __mnt_want_write_file(file); if (ret) - sb_end_write(file_inode(file)->i_sb); + sb_end_write(file->f_path.mnt->mnt_sb); return ret; } @@ -540,8 +540,7 @@ void __mnt_drop_write_file(struct file * void mnt_drop_write_file_path(struct file *file) { - __mnt_drop_write_file(file); - sb_end_write(file_inode(file)->i_sb); + mnt_drop_write(file->f_path.mnt); } void mnt_drop_write_file(struct file *file)