Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1903750ybl; Sun, 18 Aug 2019 13:15:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqz07RTiJ3vT5JA2/WdkLMkKQ4SG2XG3JvFSqsTOUcccqCh+isMuiK9tjv01eiRsPlCoVd3n X-Received: by 2002:a65:610a:: with SMTP id z10mr17137008pgu.178.1566159339100; Sun, 18 Aug 2019 13:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566159339; cv=none; d=google.com; s=arc-20160816; b=kZFbA2qFU21CV94re/RrBhYpKOZkB8NjUf7mJ8Z8fHo3B1pRc8AXogmEZXiK9PHfBz hHwH9VtHRCM4fgQxfvdOgdGCMPoeuyz1pPzTDjQ8kOt1ASDz3fiuGusuGwoP1ImBG0gs Na8R5nciW3eD/TvSnsHxVHEUEFEguuuTyCuIrJ4kOQAnx2uV6KdpLTFBRy+t3KlHpCbT iYUsbsAISKww31wJrudEcYwgGEh5PAz9H3cNqXEhI9jKMH+f7k1+8rP3MtShfEI0AnZt hbxYXptH0QkBIuranFSmBuHfC0QQbIXsxqbj56eLFNao9unoBepWSevkI3ndYmw395ys 9dtw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AFQH++1o8RqOOUXXy/R8iJf31JxjU49TDMxPTBy6oBE=; b=LIm8CY9uoNAwKThyb0gWFwjZeiwGdQjV+rA9Ql+WtguEEweqF9NDaiczrvKhu/3l7i 3Xqql8Dl4gT0NgLGDgwMNqkLPAdFcBqgfXte3XvhXunvHIEPHH6BhWoJpjSxQM+jNhB3 QpDSoprUBf8eplgBG4iO7iB1WgWKEaPYZX5zHaMt00XjsHxhYDXmnwkh2logMeqee2M2 we7KsTufmmVSlYFLCylMiadbEK4RqECcjMtsuOG/SHecPLz1XEEaxaAhxVzKBE/+VvNg kMTdI6gG0EaRnnREvNC3XRqxyjHY+zMj+nWf2kdlfE13Bh7kQPzCf/PihjnbEPhIvjPq lOww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b="uOmq2/c9"; 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=REJECT sp=REJECT dis=NONE) header.from=aol.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t17si8325938pgu.48.2019.08.18.13.15.24; Sun, 18 Aug 2019 13:15:39 -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=@aol.com header.s=a2048 header.b="uOmq2/c9"; 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=REJECT sp=REJECT dis=NONE) header.from=aol.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727150AbfHRUOb (ORCPT + 99 others); Sun, 18 Aug 2019 16:14:31 -0400 Received: from sonic309-25.consmr.mail.ir2.yahoo.com ([77.238.179.83]:41944 "EHLO sonic309-25.consmr.mail.ir2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726817AbfHRUOa (ORCPT ); Sun, 18 Aug 2019 16:14:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1566159267; bh=AFQH++1o8RqOOUXXy/R8iJf31JxjU49TDMxPTBy6oBE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=uOmq2/c9/k0JwKIqGm2gloVmxlgPrw2KVO1WcL8YA9pc3GEMnMNjZ5Q15OZy+T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ygDgq9LZY4rTa1bgC6InA0uP_3OtZSB0wVTxjGMv.aqM9WJuZi1GKLKHDmXw oEL4gvIOpEfAnfR5o7tbqctLUzcv.XEp8ItWDjT260DKw5FfyEH.zk_KW_F7.vpi3QvNKTXdV2rc Vjnyk3x4I4lKpLKqUNYu8HaMmwNSukzt5O4Ya0pPidxdO2Ke6DShFcbHdPkNF9_ipK.siCzTXgKw JhxIgP21nFlhpKerZPQzESGLAA0c4Mvrjw8deEZ1sazRJHzFlqZdLjRE_41xjChF_B9sy0c3miGW pxKMWRxjAPApVb2ls8pAqHAgfsHBsTRfFE7GiqwEuXZYF2CowYGDb4_h3MZ_kfLAZDEnf7GbEQxS DwjsMFETT0O4js80_PWTxc_74ijPYa7FQfifCHgNgNPZqOMSJZa9Nm_Fwe6wtqHy2lmvJu4ndA5B Ry5.sYUTzj_g0toV79UwQYL.3M.PlWIbc35M7J6XTHe1fPXA9rNX8Ulh8s7vDIXZDLZtCkFQrVDm pRzpWGjxKvMuJW5nweQAINF980DgF4QCq8vPKer9leKeqn0Ob Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Sun, 18 Aug 2019 20:14:27 +0000 Received: by smtp408.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 58ed0af1afde63f1f88d3ff16ad71068; Sun, 18 Aug 2019 20:14:24 +0000 (UTC) Date: Mon, 19 Aug 2019 04:14:11 +0800 From: Gao Xiang To: Christoph Hellwig , "Theodore Y. Ts'o" , Eric Biggers , Richard Weinberger Cc: Greg Kroah-Hartman , 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: <20190818201405.GA27398@hsiangkao-HP-ZHAN-66-Pro-G1> References: <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> <20190818161638.GE1118@sol.localdomain> <20190818162201.GA16269@infradead.org> <20190818172938.GA14413@sol.localdomain> <20190818174702.GA17633@infradead.org> <20190818181654.GA1617@hsiangkao-HP-ZHAN-66-Pro-G1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190818181654.GA1617@hsiangkao-HP-ZHAN-66-Pro-G1> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, On Mon, Aug 19, 2019 at 02:16:55AM +0800, Gao Xiang wrote: > Hi Hch, > > On Sun, Aug 18, 2019 at 10:47:02AM -0700, Christoph Hellwig wrote: > > On Sun, Aug 18, 2019 at 10:29:38AM -0700, Eric Biggers wrote: > > > Not sure what you're even disagreeing with, as I *do* expect new filesystems to > > > be held to a high standard, and to be written with the assumption that the > > > on-disk data may be corrupted or malicious. We just can't expect the bar to be > > > so high (e.g. no bugs) that it's never been attained by *any* filesystem even > > > after years/decades of active development. If the developers were careful, the > > > code generally looks robust, and they are willing to address such bugs as they > > > are found, realistically that's as good as we can expect to get... > > > > Well, the impression I got from Richards quick look and the reply to it is > > that there is very little attempt to validate the ondisk data structure > > and there is absolutely no priority to do so. Which is very different > > from there is a bug or two here and there. > > As my second reply to Richard, I didn't fuzz all the on-disk fields for EROFS. > and as my reply to Richard / Greg, current EROFS is used on the top of dm-verity. > > I cannot say how well EROFS will be performed on malformed images (and you can > also find the bug richard pointed out is a miswritten break->continue by myself). > > I posted the upstream EROFS post on July 4, 2019 and a month and a half later, > no one can tell me (yes, thanks for kind people reply me about their suggestion) > what we should do next (you can see these emails, I sent many times) to meet > the minimal upstream requirements and rare people can even dip into my code. > > That is all I want to say. I will work on autofuzz these days, and I want to > know how to meet your requirements on this (you can tell us your standard, > how well should we do). > > OK, you don't reply to my post once, I have no idea how to get your first reply. I have made a simple fuzzer to inject messy in inode metadata, dir data, compressed indexes and super block, https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/commit/?h=experimental-fuzzer I am testing with some given dirs and the following script. Does it look reasonable? # !/bin/bash mkdir -p mntdir for ((i=0; i<1000; ++i)); do mkfs/mkfs.erofs -F$i testdir_fsl.fuzz.img testdir_fsl > /dev/null 2>&1 umount mntdir mount -t erofs -o loop testdir_fsl.fuzz.img mntdir for j in `find mntdir -type f`; do md5sum $j > /dev/null done done Thanks, Gao Xiang > > Thanks, > Gao Xiang >