From mboxrd@z Thu Jan 1 00:00:00 1970 From: chao@kernel.org (Chao Yu) Date: Mon, 19 Aug 2019 22:58:04 +0800 Subject: [PATCH 6/6] staging: erofs: avoid endless loop of invalid lookback distance 0 In-Reply-To: <20190819103426.87579-7-gaoxiang25@huawei.com> References: <20190819080218.GA42231@138> <20190819103426.87579-1-gaoxiang25@huawei.com> <20190819103426.87579-7-gaoxiang25@huawei.com> Message-ID: On 2019-8-19 18:34, Gao Xiang wrote: > As reported by erofs-utils fuzzer, Lookback distance should > be a positive number, so it should be actually looked back > rather than spinning. > > Fixes: 02827e1796b3 ("staging: erofs: add erofs_map_blocks_iter") > Cc: # 4.19+ > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B6D9C3A5A0 for ; Mon, 19 Aug 2019 14:58:24 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 47C5F2082A for ; Mon, 19 Aug 2019 14:58:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="e5cgjRL4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 47C5F2082A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46BxrD6WHtzDqdV for ; Tue, 20 Aug 2019 00:58:20 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=chao@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="e5cgjRL4"; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46Bxr26yKNzDqcH for ; Tue, 20 Aug 2019 00:58:10 +1000 (AEST) Received: from [192.168.0.101] (unknown [180.111.132.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5F9E12082A; Mon, 19 Aug 2019 14:58:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566226688; bh=30KXwFIbBf11OqNG82++ljRpNTjhb/YlByVeH2DvVjY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=e5cgjRL4TTBuhsXHXIIXE72dDJYCh1Conr5rBZPraLrYdJ7VKbKaG9gghWkaTL60a p6UYq+npZCh4Ng4iSSFyOWV6aMHyJALe8FKZDTo7/2+fB12WMZ67Flyv/4TnIaI7/r y7fXeIvuwEB7dkT9G9Ma+/UMVs/NQHKmX9QR+PAA= Subject: Re: [PATCH 6/6] staging: erofs: avoid endless loop of invalid lookback distance 0 To: Gao Xiang , Chao Yu , Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-fsdevel@vger.kernel.org References: <20190819080218.GA42231@138> <20190819103426.87579-1-gaoxiang25@huawei.com> <20190819103426.87579-7-gaoxiang25@huawei.com> From: Chao Yu Message-ID: Date: Mon, 19 Aug 2019 22:58:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190819103426.87579-7-gaoxiang25@huawei.com> Content-Type: text/plain; charset="UTF-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-erofs@lists.ozlabs.org, LKML , stable@vger.kernel.org, weidu.du@huawei.com, Miao Xie Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" Message-ID: <20190819145804.77NUPF2hGO3Ui17QNY6avPXvKOvT7GoeHrQAzNSRgoU@z> On 2019-8-19 18:34, Gao Xiang wrote: > As reported by erofs-utils fuzzer, Lookback distance should > be a positive number, so it should be actually looked back > rather than spinning. > > Fixes: 02827e1796b3 ("staging: erofs: add erofs_map_blocks_iter") > Cc: # 4.19+ > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,