Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1389888ybl; Sun, 18 Aug 2019 02:30:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwq39gXW699Pr52IKhqT/Tl0lhPSYLU004KTmqbLdovk//ic2QCfHb36QiCbNkWAL1b9k6B X-Received: by 2002:a17:90a:21c1:: with SMTP id q59mr14857362pjc.6.1566120638580; Sun, 18 Aug 2019 02:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566120638; cv=none; d=google.com; s=arc-20160816; b=Z3LQ6ugYfb41/wJbIooZxNqPyIbAf0iVkfhcDk6vJdvf6sqrBOiJYy7h4lWYjVWIbc 3Byt7Av7w3/S8WHpFzNzxckHsoBjUk4WFUGlgwjYhc52RBpJIaIWCNS/VQDta9Ky8gDQ KFthKXj7A/QsXM7V30JGkNMbdfUBhJm2Ah9jxt1zqVfuvYYiT/GBpWXqtarY2iouVrBo 8GomUpFbrnB63ySds/I1uc+SD1RoKbUNCaoFBkhGWHV4ezP1oSAvCIZAKhBWP7q0Gd1u pQq/rAhj3Lfjjiyee1PupAByYY8nz5Su5VJI5pGyhxZGcOpHWv1WsOyvPoMlAUZTKDyi 3APA== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=elNzjKtOd8tHsVMRzwJVP/2i4hqq6jHwCebjdt6foXA=; b=uh42NYZsojGIszqgApXRaGLlnE5a7eaahfMjk/71oUcRomX3rbyeuNYWq87pk8JL3b /xd6dKPeuX+zGMOP3EvBQH1zgFCVwm7izgMMqlZxlZGNW4iZKezal37KRWlmS06pMqfk ZWPqml84DZc3tB/Yrra9xknz97nMOcFfA3OXoMSiyliLW0QXVGRFer1ixpbIctdk+RXG WPEw39vmgdYJ5Z0FDSSqvzizgCjdGLK/XQT/BCnE46RH6Y5T/qkpS+qtXpBX54JPd+/s tr0PqxAX83oMCNLEJuuXLtPWqgQbfU0iiJSNp8ISHIIw2JiPhzbgMbbKhdm7J/FGuCIL SLGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b="rstR/tV5"; 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 o1si7794246pld.73.2019.08.18.02.30.21; Sun, 18 Aug 2019 02:30:38 -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="rstR/tV5"; 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 S1726256AbfHRJ3I (ORCPT + 99 others); Sun, 18 Aug 2019 05:29:08 -0400 Received: from sonic317-22.consmr.mail.gq1.yahoo.com ([98.137.66.148]:45717 "EHLO sonic317-22.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725786AbfHRJ3I (ORCPT ); Sun, 18 Aug 2019 05:29:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1566120547; bh=elNzjKtOd8tHsVMRzwJVP/2i4hqq6jHwCebjdt6foXA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=rstR/tV5mq2tGQnRWKksVEd7fTtZ6MYHGw4G3DzIxbKxuDi66go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3PJaH4CnBtadWWHWr5GRE4UV_CMmCocDglv4w3UbUVORTW37P0 4xfEGGB7hocRFJPdmKYNLUtTdKh2jI6CaEqlp9bKFkYD2AX3lAXYJo7Q1CUq95OJ9kE3Pcv8O8tM Cutfs60iItiFgev6Sp1vEtJzeo4h7eTaNnPMCrik6LBaTmgxtOxFzc..jgMX5YPYBYOE_3u247Y. uMX8.W.EahwTYkqh4HDAPSYb7lehqS5C3n2Vg6ht5tU_v63I6r3SGY51Yl1bST3pnaj35cXIzlQz FhHDw6mEV.AqxjQC6gnBP9KK822l2V7728y67AmvXlVo4oPbM0.2zqomuqOIaOp2d0IsV_qc9lZ. zTqxG7qNgve6FtZpgI.38TCic8jI3Ud5Q6eI52lmTMpW2l7Ug_qKM.Js56ZWrRECx6qzyg_bZwqf j1IZXkcuQAf.C7BSWuUBnx83cAYXkad9xFbT_e7NSSfISOKL4Nf5JFLnCjVEDJLUXs..tfH92Tzu CoRl1S1djCKU6TrVudNK6kqQkxEMHZpYuUldf4A-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Sun, 18 Aug 2019 09:29:07 +0000 Received: by smtp420.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ca20b18070ed0178b8c3396d5cdfbdc7; Sun, 18 Aug 2019 09:29:04 +0000 (UTC) Date: Sun, 18 Aug 2019 17:28:43 +0800 From: Gao Xiang To: Richard Weinberger Cc: Greg Kroah-Hartman , Al Viro , linux-fsdevel , devel , linux-erofs , linux-kernel , Andrew Morton , Stephen Rothwell , tytso , Pavel Machek , David Sterba , Amir Goldstein , Christoph Hellwig , Darrick , Dave Chinner , Jaegeuk Kim , Jan Kara , torvalds , Chao Yu , Miao Xie , Li Guifu , Fang Wei , Gao Xiang Subject: Re: [PATCH] erofs: move erofs out of staging Message-ID: <20190818092839.GA18975@hsiangkao-HP-ZHAN-66-Pro-G1> References: <20190817082313.21040-1-hsiangkao@aol.com> <1746679415.68815.1566076790942.JavaMail.zimbra@nod.at> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=gbk Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1133002215.69049.1566119033047.JavaMail.zimbra@nod.at> 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 On Sun, Aug 18, 2019 at 11:03:53AM +0200, Richard Weinberger wrote: > ----- Urspr??ngliche Mail ----- > > I agree with you, but what can we do now is trying our best to fuzz > > all the fields. > > > > So, what is your opinion about EROFS? > > All I'm saying is that you should not blindly trust the disk. I completely agree with you, and I'm teaching EROFS to make the little naughty boy more strong... (we already have many error handling code, but I think I will teach him more, yes.) > > Another thing that raises my attention is in superblock_read(): > memcpy(sbi->volume_name, layout->volume_name, > sizeof(layout->volume_name)); > > Where do you check whether ->volume_name has a NUL terminator? > Currently this field has no user, maybe will add a check upon usage. > But this kind of things makes me wonder. Yes, I think this is a good point. :) Since volume_name is not used currently, I will fix it when it use late. I will make a note here (or more straightforward, I will fix it to avoid potential bug now.) Thanks, Gao Xiang > > Thanks, > //richard