Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1111030rwb; Thu, 15 Dec 2022 06:35:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf4n2d7JMghyADQ/Jk7dui9c3a47tpJo4JaMVDMRoyiH5ha4ln3k4b4f4MqFBsZItNhGemFA X-Received: by 2002:a17:907:1256:b0:7c1:1adc:46fd with SMTP id wc22-20020a170907125600b007c11adc46fdmr19871424ejb.34.1671114916038; Thu, 15 Dec 2022 06:35:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671114916; cv=none; d=google.com; s=arc-20160816; b=ur7OMgpyLbQ+4MuKAC5nredgmGxBKuK9v9ZyPaE68Cp5UF1FW/7pSCjeeRN7ttcZ1N T55mQ05k2rC1FST+cRjuE2eaUVwVQStcPXtUsnAFtgTPurmoAmjC9FB+lffJ52aCvmcQ ri0pCjDn1RvTBM07PYax6eFRLNIyihfWW9vr8dU4kpDh4WQUXayyvOfHy9ZmKlRIm2ZA y2xcH+WiYMD9tQH6mth6G3PwCiLnYTBqURbHff7VMbcLFt4RII4M3NsA3XRjDFOPWWFK gn1QeGyCxj36vVM8HacJyT+vu5LWzF07kz7D2ctns8ipKhevXDh8JsOq3Pcbg3cF18LR UyIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=NY/qmQ3t0HzGFKW2Y7rDYzqKqK3MahWY566FSzknawA=; b=YCQg60BZMoPgI5TNT87NL7WaT22Zh8zkPpx1xxeDYg7djU+51aVS7OQ4lhT33//EGI aJiXUP22qPNPna3jpNK0KFy9YTBZisgdjvux970h0M7yUFDEKJMe89qu3rLHyQZU2mwp Okswbazc35pjVSt4yMfFKWK+NgdJ0VYWBkUMVBfCdK2PIBrMQmyeuXXOTX2WaHGjOsGF HKh78/9ZwTMyOkxQ508Y9Ch1npFjV3ZekvR7hYQC0lj4uGWK9/NV2N4u8h+qeoxIwwfR a+/8nm5ijp7QvqyfQOiWshsUjCqUSHPUI/ID6sj9KF/qac8oq2+udTzKX6F2N59KOtjo lXkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr11-20020a170907720b00b007c103ce0cc7si13445236ejc.740.2022.12.15.06.34.59; Thu, 15 Dec 2022 06:35:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229882AbiLOOY1 (ORCPT + 68 others); Thu, 15 Dec 2022 09:24:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbiLOOYZ (ORCPT ); Thu, 15 Dec 2022 09:24:25 -0500 Received: from out30-1.freemail.mail.aliyun.com (out30-1.freemail.mail.aliyun.com [115.124.30.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6490B2A25F for ; Thu, 15 Dec 2022 06:24:23 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VXNPfd2_1671114258; Received: from B-P7TQMD6M-0146.local(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0VXNPfd2_1671114258) by smtp.aliyun-inc.com; Thu, 15 Dec 2022 22:24:20 +0800 Date: Thu, 15 Dec 2022 22:24:17 +0800 From: Gao Xiang To: Tudor Ambarus Cc: linux-erofs@lists.ozlabs.org, xiang@kernel.org, chao@kernel.org, huyue2@coolpad.com, jefflexu@linux.alibaba.com, joneslee@google.com, linux-kernel@vger.kernel.org Subject: Re: BUG: unable to handle kernel paging request in z_erofs_decompress_queue Message-ID: References: <17c7a0fb-9dc3-6197-358b-894aeb8ee662@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <17c7a0fb-9dc3-6197-358b-894aeb8ee662@linaro.org> X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tudor, On Thu, Dec 15, 2022 at 02:58:10PM +0200, Tudor Ambarus wrote: > Hi, Gao, Chao, Yue, Jeffle, all, > > Syzbot reported a bug at [1] that is reproducible in upstream kernel > since > commit 47e4937a4a7c ("erofs: move erofs out of staging") > > and up to (inclusively) > commit 2bfab9c0edac ("erofs: record the longest decompressed size in this > round") > > The first commit that makes this bug go away is: > commit 267f2492c8f7 ("erofs: introduce multi-reference pclusters > (fully-referenced)") > Although, this commit looks like new support and not like an explicit > bug fix. > > I'd like to fix the lts kernels. I'm happy to try any suggestions or do > some tests. Please let me know if the bug rings a bell. Thanks for your report. I will try to seek time to look at this this weekend. But just from your description, I guess that there could be something wrong on several compressed extents pointing to the same blocks (i.e. the same pcluster). But prior to commit 267f2492c8f7, such image is always considered as corrupted images. Anyway, I will look into that and see if there could be alternative ways to fix this rather than backport the whole multi-reference pcluster feature. Yet I think no need to worry since such image is pretty crafted and should be used as normal images. Thanks, Gao Xiang > > Thanks, > ta > > [1] > https://syzkaller.appspot.com/bug?id=a9b56d324d0de9233ad80633826fac76836d792a