Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1376750ybl; Sun, 18 Aug 2019 02:12:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwR6KgClCmcZ8EtQz4wKMnVzn+8IudQ6Tkf6Y3or9PrA/c053QCA19/O0qXQbpgaoZ8kbha X-Received: by 2002:a17:90a:148:: with SMTP id z8mr7819223pje.96.1566119534654; Sun, 18 Aug 2019 02:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566119534; cv=none; d=google.com; s=arc-20160816; b=j5Ecva0nBAJRRvVSMGqve1A+3TdFjfE22QI8yjP0Ys7PGrXkEjYUVYCMaxXsccmJ8X qZ/mYGxB4ITKFtlSxo2O6WhEobdNymi4EpphDK4fSx/NHRYiJe78ee1Sv3+BA2OLtmon y/wscchVw7M93dnPTOzHqGTpb7YPn48n15lJHhUdSvJAtBffvTiGGUrS0DUzueunEXhQ iuKEFBCFZvc2dmEE2BCwkREnIm6EuX0W3s8zkWQT0ayTKS0hdMDSTFoLFO9w9+ysuYcY 80mpuetP9DbWD/N3/jd3sjpA6txBe/BOVY84mIHe4GQs5VqPTOyfJcQG0dH8pGWEICuN nRcA== 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=yB3D1v0RF72OURF02+82bAtwZS3CpUHbyipKYYFvvNc=; b=rQRXQiv7BR9g3zR5q5BtTWNBNUC8ZXN6S66o2ZIbfYIonhkrpPMlvJ5/nhcWcITLN8 7HGwYwjH12T5DoUYMhVEFUHimAgd9sz+E2o4H2jV6FYXuFoxdKQ6ZtOYK0mU+9VA9TT+ NS8TcO4ESEl0CdNzkQnuMWQzVm2EomvLMiAJCUN9mGOyKVy0hMuQelI0QXko0bMmpV9O 05FhcU1Qhqa5GihG+LRbDvdDi6ZRWSOgHImhWeXbnd4TqDYhhtypLf/t/o2k/mSstOKN nq7YMLd0HJN0y8kAIUSkOxEwfbuyrgCqEUMXr1K3r/xvSwH4eYDEG0KBS+HZlzv8OKpx A0EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0UZqnSyo; 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 72si8322378pfx.268.2019.08.18.02.12.00; Sun, 18 Aug 2019 02:12:14 -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=0UZqnSyo; 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 S1726554AbfHRJJx (ORCPT + 99 others); Sun, 18 Aug 2019 05:09:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:56866 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726208AbfHRJJx (ORCPT ); Sun, 18 Aug 2019 05:09:53 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 5F3792173B; Sun, 18 Aug 2019 09:09:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566119392; bh=zJeFs7U/OKJWGGAMgwGEyd/YRXXtatS0kuwxKva2EtI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0UZqnSyoKKQI2GubQ7wUWVIzzCcywbZk0Vo5WOBVxQoz0OxWGEiiXXyd2WEKHQbN8 +nUz3Fi4lJqCIQKluFrSEk+kOlmFp23ugbEb7oiWGNF8pk3mmYPGEdXDrRd6Z4NSDn /sYRTOi+IAPVeIgSOSpwJEki9pCCk8/4CidsmOIE= Date: Sun, 18 Aug 2019 11:09:49 +0200 From: Greg Kroah-Hartman To: Richard Weinberger Cc: Gao Xiang , Jan Kara , Chao Yu , Dave Chinner , David Sterba , Miao Xie , devel , Stephen Rothwell , Darrick , Christoph Hellwig , Amir Goldstein , linux-erofs , Al Viro , Jaegeuk Kim , tytso , linux-kernel , Li Guifu , Fang Wei , Pavel Machek , linux-fsdevel , Andrew Morton , torvalds Subject: Re: [PATCH] erofs: move erofs out of staging Message-ID: <20190818090949.GA30276@kroah.com> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1133002215.69049.1566119033047.JavaMail.zimbra@nod.at> 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 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. > > 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. You have looked at reiserfs lately, right? :) Not to say that erofs shouldn't be worked on to fix these kinds of issues, just that it's not an unheard of thing to trust the disk image. Especially for the normal usage model of erofs, where the whole disk image is verfied before it is allowed to be mounted as part of the boot process. thanks, greg k-h