Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1801581ybl; Sun, 18 Aug 2019 10:45:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtEnJxP/aYhvwH7nbrmBvCHtNdm0DlDIkki6zY4VEpwpP+aUniCpA3oNdPNMISBWLZh0qq X-Received: by 2002:a62:4e09:: with SMTP id c9mr21291942pfb.130.1566150348760; Sun, 18 Aug 2019 10:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566150348; cv=none; d=google.com; s=arc-20160816; b=ddN1ZKJGqx2mvhpIus1GzBKO9HSWOiegg3dcIhenOX73W3pTvyZT/fIxLZ/Q7pvGTB xXbdM36XHXRSBA+3D9DIwlv4tty8GEAncYdkO2pFIzwFBdVgxjSAIW5FAfj7ABUpHJ3P SiPZayyODgL7MIGHgBfVYFin+/U9ypXg5A5lCaoihZg5DRv+kDVBmExHHI8+sMo0uDuE w3IYnzPm7EFOR3KjsGkD0V8/k3eV0RuZbCqJCXdJgJKgWaprCZhPtBnXVk69u/NcNqH3 LGwRIesTxVFjqoF4EKVrkXCD/Ytng/+rjUxYvr7z4+3o/RiETHfzKbpJyeSTT/NyaFSk dtyQ== 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; bh=XUpG3oL0mtc4T7mv9/YP3B7HtCzQCMjdO5nYTCrHtE4=; b=QzL7DispLx1b1skgsZ5YyvdyxD5ci2oYoTDLpZS86ardz7QPg/zTHr/+1bgQkHcJyV w/ANI2PwJzrFhmex1RfOQ+JFVlANoOUjrT5rUYUGKsivhrJKEw5g4aqlCumeZbaTF/fk Pm3osH2gSY+GJqMgG8d0WN9eIV924/zWc8jhsGhkwMHf2hJvx1CKswf2J2PnJw0ofZxS RxRYvhqk5F8TaexHc/AgHFuQw4Z1IqJW5WgVs8pnOe4i3YfNi7dlaftGTaP1xCLievmp /sgBMHOUvPPbNQfpQOyHEuyPhThM2FxVrZNSOdZ5tDpNy5Nhx0CDNWaEnDMnf0AJ7ZBp GMNQ== ARC-Authentication-Results: i=1; mx.google.com; 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 q7si8783411pfq.147.2019.08.18.10.45.34; Sun, 18 Aug 2019 10:45:48 -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; 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 S1726945AbfHRRop (ORCPT + 99 others); Sun, 18 Aug 2019 13:44:45 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:49458 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726247AbfHRRop (ORCPT ); Sun, 18 Aug 2019 13:44:45 -0400 Received: from callcc.thunk.org ([12.235.16.3]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x7IHhsaJ022921 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 18 Aug 2019 13:43:56 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 494464218EF; Sun, 18 Aug 2019 13:43:54 -0400 (EDT) Date: Sun, 18 Aug 2019 13:43:54 -0400 From: "Theodore Y. Ts'o" To: Christoph Hellwig Cc: 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: <20190818174354.GA12940@mit.edu> Mail-Followup-To: "Theodore Y. Ts'o" , Christoph Hellwig , 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.10.1 (2018-07-13) 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. Actually, what Prof. Kim's research group was doing was taking the latest file system formats (for ext4 and xfs) and fixing up the checksum after fuzzing the metadata blocks. The goal was to find potential security vulnerabilities, not to see if file systems would crash if fed invalid input. At least for ext4, at least one of Prof. Kim's fuzzing results was one that that I believe could have been leveraged into a stack overflow attack. I can't speak to his results with respect to XFS, since I didn't look at them. Cheers, - Ted