Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1734484ybl; Sun, 18 Aug 2019 09:18:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTSBENa4o+6OdN8cdyTUSUNt91LWwZVcWS9OGSGSW94rqj/kFMrLWnxfGO0VLqmIQM0dHk X-Received: by 2002:a63:4612:: with SMTP id t18mr16410434pga.85.1566145086849; Sun, 18 Aug 2019 09:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566145086; cv=none; d=google.com; s=arc-20160816; b=vKAndcYd8xOnOQf4Ccon02T3pzCsaWCjoHYAbwt5C3m/9Pmv5q8ueQxYlBZh1COoEr IqzWVDWNSLCnMeqRl6TRgnPEGVdsbnpwj9L8fmY/pYntQbkNZ/lUZJ9YOJv1Hkh+xL5M yRw7jep66P9Hibow5zXk8jAC2vV8stQ74DwwjMqqRpXHPnLYq6VMOmg2/352sbkwVDgN Nqe6nKlzNlXCQ+unnmeXmL5xR0CmjuPh0aOPE4r1cSTVkQXG9LUfSTsOK82nbhhqWWxO 2yLFTQH5afyQsd4PjSRtab6819olUBDEeWiQ0i8dyfmyyiSdb85ih/BBOWecYH+4JD2H 1lWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ZjDClxWwhwvMQMIeq8qWE9OgiaBiSgUhczcRyniJOdc=; b=ppTOgzbaGeZ+oKlVXmRy2LXhxtChevJsdNe5g+wvKGcb2RlMZ5E4Cb2s0mVHh6DaGq r6SiOKwQqC1Vx616aB9uPtwwlNBwrxdBPCFkPU/I1nU1Em68z73MC3iKOeuAks5LeXwG +/zKyuQWyNxZEesWdheOWyAxi2GoQySNo9/FN3dzhFinHkeA7qPnMT1+7doL+4GryB5J fE01LuKyZk4C92yWQC87j39i5r2apOx0ceB+NtihbODVPj4ck4goIGGmfOqb3Ae06EGX eHYr4D4V21yvVQsJSu5YU/HpRJNO4PPSX2vriHGsjoBoiFv6Dm+E4S9y6mtgxaDDa2ZD QCuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TJuDeqIz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o33si7970689pgb.381.2019.08.18.09.17.50; Sun, 18 Aug 2019 09:18:06 -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=TJuDeqIz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726812AbfHRQQm (ORCPT + 99 others); Sun, 18 Aug 2019 12:16:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:48316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbfHRQQl (ORCPT ); Sun, 18 Aug 2019 12:16:41 -0400 Received: from sol.localdomain (c-24-5-143-220.hsd1.ca.comcast.net [24.5.143.220]) (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 31EFF20644; Sun, 18 Aug 2019 16:16:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566145000; bh=NSSy4mA2IcwfuYQPcB9hX5r00sDDMr1GAhaImAFrjmk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TJuDeqIz1AOUrfjI4tJ2s99hzAlFWk84d4zcmb/BVNJEFYVx2WKrptDAGwtmkk2TK LnxnxmgqgQCUC4un3j70hQ1g7AfuNzkiHyG12ZIyk04RrJz3+ahO8wpJ1G5gmacEA1 fl36zAQND7Sp3qSvk1n1LO8kcK1bjbBoAOftLsAg= Date: Sun, 18 Aug 2019 09:16:38 -0700 From: Eric Biggers To: Christoph Hellwig Cc: "Theodore Y. Ts'o" , Richard Weinberger , Greg Kroah-Hartman , Gao Xiang , Jan Kara , Chao Yu , Dave Chinner , David Sterba , Miao Xie , devel , Stephen Rothwell , Darrick , Amir Goldstein , linux-erofs , Al Viro , Jaegeuk Kim , linux-kernel , Li Guifu , Fang Wei , Pavel Machek , linux-fsdevel , Andrew Morton , torvalds Subject: Re: [PATCH] erofs: move erofs out of staging Message-ID: <20190818161638.GE1118@sol.localdomain> Mail-Followup-To: Christoph Hellwig , "Theodore Y. Ts'o" , Richard Weinberger , Greg Kroah-Hartman , Gao Xiang , Jan Kara , Chao Yu , Dave Chinner , David Sterba , Miao Xie , devel , Stephen Rothwell , Darrick , Amir Goldstein , linux-erofs , Al Viro , Jaegeuk Kim , linux-kernel , Li Guifu , Fang Wei , Pavel Machek , linux-fsdevel , Andrew Morton , torvalds References: <20190817220706.GA11443@hsiangkao-HP-ZHAN-66-Pro-G1> <1163995781.68824.1566084358245.JavaMail.zimbra@nod.at> <20190817233843.GA16991@hsiangkao-HP-ZHAN-66-Pro-G1> <1405781266.69008.1566116210649.JavaMail.zimbra@nod.at> <20190818084521.GA17909@hsiangkao-HP-ZHAN-66-Pro-G1> <1133002215.69049.1566119033047.JavaMail.zimbra@nod.at> <20190818090949.GA30276@kroah.com> <790210571.69061.1566120073465.JavaMail.zimbra@nod.at> <20190818151154.GA32157@mit.edu> <20190818155812.GB13230@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190818155812.GB13230@infradead.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 18, 2019 at 08:58:12AM -0700, Christoph Hellwig wrote: > On Sun, Aug 18, 2019 at 11:11:54AM -0400, Theodore Y. Ts'o wrote: > > Note that of the mainstream file systems, ext4 and xfs don't guarantee > > that it's safe to blindly take maliciously provided file systems, such > > as those provided by a untrusted container, and mount it on a file > > system without problems. As I recall, one of the XFS developers > > described file system fuzzing reports as a denial of service attack on > > the developers. > > I think this greatly misrepresents the general attitute of the XFS > developers. We take sanity checks for the modern v5 on disk format > very series, and put a lot of effort into handling corrupted file > systems as good as possible, although there are of course no guaranteeѕ. > > The quote that you've taken out of context is for the legacy v4 format > that has no checksums and other integrity features. Ted's observation was about maliciously-crafted filesystems, though, so integrity-only features such as metadata checksums are irrelevant. Also the filesystem version is irrelevant; anything accepted by the kernel code (even if it's legacy/deprecated) is open attack surface. I personally consider it *mandatory* that we deal with this stuff. But I can understand that we don't do a good job at it, so we shouldn't hold a new filesystem to an unfairly high standard relative to other filesystems... - Eric