Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4270581rwj; Tue, 20 Dec 2022 08:05:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXu1iKibPgoE9i7v2GkSmLfZWBIXpz5abRdGWXy1cMXe5HW9pLZhMGX8FBlma4qdJZOV2xK4 X-Received: by 2002:a17:902:a986:b0:191:327d:ddbf with SMTP id bh6-20020a170902a98600b00191327dddbfmr2802406plb.12.1671552299735; Tue, 20 Dec 2022 08:04:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671552299; cv=none; d=google.com; s=arc-20160816; b=isFfS4m+ondqtM4NESFChDioP5XjKWER4Zykh3zRsnu160/vxHy6xhJUxn9jVlw3MM 55r25Fv6/570084w2ravOZlSOSYomaJDV5K7wCQeOEcNzAlS9Xk1NBUs4SYDr7+ZI/Xz wq+c8lkAYqoUuBYdl07ZpnKhDwxMNOshTtatKmntuQtERlHba6JIgVJETNP8eEYPa9HU u6EP2cuyszFcwGAUe0630uM99EAk6YgJ/fAs+jCXgWJgqd+LR7FIZYjhzrcZnCv2XA9Z FVg6smuSYIss47nZVfrKMrN4Pv8n+3dOg9tVzcI4q1oT0A/3Km0+2pY3s8JOFI02SyXr 4Dew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=c/ge45M+uLmbjheub/WT6HdLM4XPrSEquSgTSYE+1+s=; b=UGVamnPMkVu0ilJXDDqQZc2Wv1Rvb8X8FUz3GgVr3v2PkLg1Z81x0kHK+WNwbKNMth aPtEzidXOeQf837p7DjdkzeFuEwCw1G/O5uhZvU68AvuF8KOQkbHZDra1+ARFabl+Jvs PE2CX7ROtYIhxx8WEwNCClmNVtUX6CuaDK1IPAGiI4m6uMwZWRKHDdqUw2/m5AmWxvsG uuVHjyvM8wl70p0n+i5txO1P/dJcI9zre+flKFWQ8RLRimLdC6R3FkBXeUzdJUzGaylg pxDBFPpHP+8qC4lUDF1S9Dff7k61Qe8o7xPtj7mnLg91929WEOyBwPmLEDp1ZC+OKC24 w6cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g+CrOS8T; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d20-20020a170902c19400b001866341b823si13274775pld.322.2022.12.20.08.04.50; Tue, 20 Dec 2022 08:04:59 -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; dkim=pass header.i=@linaro.org header.s=google header.b=g+CrOS8T; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233340AbiLTPm1 (ORCPT + 69 others); Tue, 20 Dec 2022 10:42:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229810AbiLTPm0 (ORCPT ); Tue, 20 Dec 2022 10:42:26 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E71C4F46 for ; Tue, 20 Dec 2022 07:42:24 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id bj12so30034761ejb.13 for ; Tue, 20 Dec 2022 07:42:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=c/ge45M+uLmbjheub/WT6HdLM4XPrSEquSgTSYE+1+s=; b=g+CrOS8T/Z1uS8VZcpmQln5szwk22w2uuuSXfVzD1rGmZFrYXZjBz98w9dSw4HbwVn T27TcRabPTfkSzGB+1yrXoZ4vm7S2vJl6NUffdrX8iXoANBQdeN0peVeun71lqvO5iyw 86RnFQs277o3fXX4sWWMtKwngKuTOds6nkgtbJ5WAq1tWdU7BtHbNCJpnZwzlYJM96MI OZWj93EhiSWq+JxUCpVsFp9d7hF2uifb5FyidjSe3TkN1Nlxu/yzRLCBlJTSG1a5T38r ul7w646UGnNB51wnyv7YYYqBdbYTYTO4oww0SxhPQyd78tmXuL5TisbW4i3Dg90cbCSB dqgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=c/ge45M+uLmbjheub/WT6HdLM4XPrSEquSgTSYE+1+s=; b=SBymK/h6zPOd5FfUZMcYtS7aOnzPIkx1NSofxVfVaWV+SUOs0+EkjLk8OGulE0Qqgm XkmGIi4l47DPYMjsd3zWF6lU+PaNRhxCH95L1HYLA5CmvdRhiJ8qPU05iTjTcseu4m9o OcT/RnfHVyF/p3drBGFyK4HVslA2mFeqns0wPj0tlGOjht8Vs3zDhmCmOexVZlAYivVd a7IIB/hxhOfhjR2L5btKQknvthJh6N0Ttrs67X1Jdsq0vt64guhQ+UZcbplKnaUzP4sH EI+hCmxOico+T7xfJxxLSFTTj4XFp/sgL9w5l7lN8sO/vFO6WM6l3YPz7odC77MzCTFK SVhg== X-Gm-Message-State: AFqh2kpCGkrIxOIeLLQ3On/tjfv0hWIKHO6Q/rPhkq0D8ZDashBRo73d dMBM383rasdpuHsuF/SpWqBEUQ== X-Received: by 2002:a17:907:8b92:b0:7e8:cf25:4b9c with SMTP id tb18-20020a1709078b9200b007e8cf254b9cmr14902492ejc.59.1671550943513; Tue, 20 Dec 2022 07:42:23 -0800 (PST) Received: from [192.168.0.104] ([82.77.81.131]) by smtp.gmail.com with ESMTPSA id bq15-20020a170906d0cf00b007933047f923sm5723277ejb.118.2022.12.20.07.42.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Dec 2022 07:42:23 -0800 (PST) Message-ID: <947527a5-f345-b7c8-6938-9a8d2863fbac@linaro.org> Date: Tue, 20 Dec 2022 17:42:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: BUG: unable to handle kernel paging request in z_erofs_decompress_queue Content-Language: en-US To: Gao Xiang 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 References: <17c7a0fb-9dc3-6197-358b-894aeb8ee662@linaro.org> From: Tudor Ambarus In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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, Gao, On 15.12.2022 16:24, Gao Xiang wrote: > 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. I guess to backport the multi-reference pcluster feature is not an option for stable - just fixes are accepted. If you think it is worth fixing the problem without adding new support, I can dive into it. Let me know what you think. Thanks, ta > > Thanks, > Gao Xiang > >> >> Thanks, >> ta >> >> [1] >> https://syzkaller.appspot.com/bug?id=a9b56d324d0de9233ad80633826fac76836d792a