Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1371289ybl; Sun, 18 Aug 2019 02:05:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfY0VApPaDuaCRPUT6t1bN9TbWF2orTdsn+2TEUe9KolZ7weRRRIMrKLdtTSpGQtz7v5Jv X-Received: by 2002:a17:902:7286:: with SMTP id d6mr17343917pll.61.1566119117791; Sun, 18 Aug 2019 02:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566119117; cv=none; d=google.com; s=arc-20160816; b=VD3KQ20//GvIkAhKYwF6asU2c2uLwMVUgW2gxR/NTn39E1NiqmxqizeVzU/lR9xh1d mB/bpAZCqIz+0qA0+/jzkhBChgYLGoG9WcWsXOp2xrYORt7WzjkVV1HHI5DnXSnqjKph gc3zePDh4yVP+uKaW9vDWtWyq8Y4xaShdU6mmo55zaJDtiAEJ5n2O1laCVjH6Kc/lGcI 7kZx2jq+st8+c+puhxlGwuxRcfI27iDrBE4cNW8R8IoXtiReVfJfbszOKCYsEWhkpCff HQrGxKBBL/V7Q+UGUet20IV2kZwD4Tib2vvysB8j7InP6XkBS2kVWPd/02nELae1nAKz sSzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=JhvxMZkByqioz4YhV/kSJ7Ds2XkoxfTcYSVMq3Pnjnk=; b=e72sfZPbZZwGVTSCUBRUh/PfQNT/lwk3kmdCeour5L5lpz28F+Y4lT0RtIP9dsu9uP ojtGMpcwZWyLK2b78qd9gT8N7L+w9Y08mC03xhVty+SkC9J6a5yQHPBEKu/kv843AElW xEgirWWLPWDOlHjiVi3j7SJb+Cl5x904K5KdOwRZOjdJ3xId8aWimfUKJu5os40bUIei Yv+lEXf38kb8/jA3fP2xz9glzJXyUL/ioRmOQD5l/KpC87WF/FdxDFtSZEY17eE9PCik 9/V4ZNaWsBSV1ZYPo3Z+Pdr7HerlOFqn19yTsvNFOMuItVMdvCzC7kYmNDNLRhm+hhpt gNzw== 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 i3si7448439pgd.554.2019.08.18.02.05.02; Sun, 18 Aug 2019 02:05:17 -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 S1726598AbfHRJD4 convert rfc822-to-8bit (ORCPT + 99 others); Sun, 18 Aug 2019 05:03:56 -0400 Received: from lithops.sigma-star.at ([195.201.40.130]:52138 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726208AbfHRJD4 (ORCPT ); Sun, 18 Aug 2019 05:03:56 -0400 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 47E59608311C; Sun, 18 Aug 2019 11:03:54 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id oPN-VV6EAqFe; Sun, 18 Aug 2019 11:03:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id D4E906083139; Sun, 18 Aug 2019 11:03:53 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 6BRG8VH4p6ay; Sun, 18 Aug 2019 11:03:53 +0200 (CEST) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 369BA608311C; Sun, 18 Aug 2019 11:03:53 +0200 (CEST) Date: Sun, 18 Aug 2019 11:03:53 +0200 (CEST) From: Richard Weinberger To: Gao Xiang 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 Message-ID: <1133002215.69049.1566119033047.JavaMail.zimbra@nod.at> In-Reply-To: <20190818084521.GA17909@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> Subject: Re: [PATCH] erofs: move erofs out of staging MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF60 (Linux)/8.8.12_GA_3809) Thread-Topic: erofs: move erofs out of staging Thread-Index: zPcjjr8wUC8isJCGfxMEFAfBoxlmEA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- 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. Thanks, //richard