Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2530587ybl; Mon, 19 Aug 2019 03:37:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzavw9y8crTZcYJ1nDJSQrbJc9mc00USBxVOKjgQQj4ZgSF/YyC76D8vaaYbQ/DwuZNGmUz X-Received: by 2002:aa7:914e:: with SMTP id 14mr23313423pfi.136.1566211062892; Mon, 19 Aug 2019 03:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566211062; cv=none; d=google.com; s=arc-20160816; b=IJLVYHWv9kT9Kzwb0SPgwMaSbhUUz3z91nMb2hCNfGeMQyRVDRfjGCR2YHdHM6F3HS MZfITeCOR20D/QpSMduIdJR1H+ZxrlD7sKeM/KocQ4tbAV7JJJk6P6u8nzTau07rcG26 RSG7z5FIHogQ3d0p+6dbOU4nQsV9PIxnhwggc8bY0G9PYhzqxRzsDZ1mxGG5SwkaN+9E NR2JHkxOdsyB9FYTuQe52DruIWTmhxMnHOMV/VIRrsTw+GOxjiUECCpwVShO/XyBHoPP npSmiCx63PGlvLy7TGvSCHEKecyo15xBPVWmmU3EXJg+bAxg88AoL9w3UStkoEhWhTUp r98A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=+ZVCnpbFjF9yq7/i8A40o5g8IvJmhJgo89hEnGicHyY=; b=auzYfPtbAY/dvBI5B4cRvHrEhoQxKeFNL31+iQvBwdTer4qxfnKnOeGfw+Dn4IFESS 13TdzCAdPGrSp5ZJS1/qp4lCZ/TnB0XeLGbJqeNiF8u7J2I9AN7BHb17uQE/BnEm96V2 QNZMw82E9T6CJbn8HgXdN02MNt2JUASFG9cVInYkpz+IfZJNKn4tMLOdEQrTfuuyixdO i4zbvw3X16rVZtyh6lLRDaFLPRLAtmaq2ND3AYLgNqPwZEJYLiR07DDKZGgOeiqLjisL j8IV/Yv8Ik2AonYSWldg0TAVh3jNKG1UF5O2IhkvnoaYflm4mTuaT741KyduXCFcwotB q58w== 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 q135si10163285pfc.125.2019.08.19.03.37.27; Mon, 19 Aug 2019 03:37:42 -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 S1727326AbfHSKfT (ORCPT + 99 others); Mon, 19 Aug 2019 06:35:19 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:55472 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726477AbfHSKfS (ORCPT ); Mon, 19 Aug 2019 06:35:18 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 51609BA7CB78A0572AFD; Mon, 19 Aug 2019 18:35:12 +0800 (CST) Received: from architecture4.huawei.com (10.140.130.215) by smtp.huawei.com (10.3.19.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 19 Aug 2019 18:35:03 +0800 From: Gao Xiang To: Chao Yu , Greg Kroah-Hartman , , CC: LKML , , "Chao Yu" , Miao Xie , , Fang Wei , Gao Xiang Subject: [PATCH 0/6] staging: erofs: first stage of corrupted compressed images Date: Mon, 19 Aug 2019 18:34:20 +0800 Message-ID: <20190819103426.87579-1-gaoxiang25@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190819080218.GA42231@138> References: <20190819080218.GA42231@138> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.140.130.215] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, I have fuzzed EROFS for about a day and observed the following issues due to corrupted compression images by my first fuzzer (It seems ok for uncompressed images for now). Now it can survive for 10+ minutes on my PC (Let me send out what I'm done and I will dig it more deeply...) All the fixes are trivial. Note that those have dependency on EFSCORRUPTED, so for-next is needed and I will manually backport them by hand due to many cleanup patches... Thanks, Gao Xiang Gao Xiang (6): staging: erofs: some compressed cluster should be submitted for corrupted images staging: erofs: cannot set EROFS_V_Z_INITED_BIT if fill_inode_lazy fails staging: erofs: add two missing erofs_workgroup_put for corrupted images staging: erofs: avoid loop in submit chains staging: erofs: detect potential multiref due to corrupted images staging: erofs: avoid endless loop of invalid lookback distance 0 drivers/staging/erofs/zdata.c | 46 ++++++++++++++++++++++++++--------- drivers/staging/erofs/zmap.c | 9 +++++-- 2 files changed, 42 insertions(+), 13 deletions(-) -- 2.17.1