Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 38A29C433FE for ; Fri, 7 Oct 2022 17:46:49 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MkbN72Gvxz3dqC for ; Sat, 8 Oct 2022 04:46:47 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=LP8J88p4; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=145.40.68.75; helo=ams.source.kernel.org; envelope-from=xiang@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=LP8J88p4; dkim-atps=neutral Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (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 4MkbN308M8z3c81 for ; Sat, 8 Oct 2022 04:46:42 +1100 (AEDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 77F1CB8160D; Fri, 7 Oct 2022 17:46:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 892F4C433C1; Fri, 7 Oct 2022 17:46:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665164797; bh=GYvJFCOsj2U1zfDFdDoeHoZGcUx99SoKzBKO4FXvIwI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LP8J88p4uPSjSloYJKiszC6Q9OQ9Qv85yEaKADNULmXu1KJhprUXxKEPZfhohJHUN NbonQo6MO2W0cat/n62wOxq67CtB9e2wezVpiAzjQTPQ1NHk6AKzqLj02wIju1caqQ Ltc7WJ2aIcgnVOXZOS/dlbrhex4JkeuYeANtnYcBO50+d6YMyN4VQle7TpXQ9bDZlx 0OpfyK6QhN+rmGLKmD86KNZCngIRcCX7AfyhYkjlVOaMfKP+XCE4eptkP5E52pTEJb Uau0O+zMJ2pfStM4QJhZVXl7pqFgr3IOYqLMnctQqW4JZTU+OElrseJYviNJHVYSqA 78xfkEPOWNCBQ== Date: Sat, 8 Oct 2022 01:46:32 +0800 From: Gao Xiang To: Yue Hu Subject: Re: [PATCH v2] erofs: fix invalid unmapped accesses in z_erofs_fill_inode_lazy() Message-ID: Mail-Followup-To: Yue Hu , xiang@kernel.org, chao@kernel.org, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org, zhangwen@coolpad.com, Yue Hu References: <20221005013528.62977-1-zbestahu@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221005013528.62977-1-zbestahu@163.com> 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-kernel@vger.kernel.org, zhangwen@coolpad.com, Yue Hu , linux-erofs@lists.ozlabs.org Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" On Wed, Oct 05, 2022 at 09:35:28AM +0800, Yue Hu wrote: > From: Yue Hu > > Note that we are still accessing 'h_idata_size' and 'h_fragmentoff' > after calling erofs_put_metabuf(), that is not correct. Fix it. > > Fixes: ab92184ff8f1 ("erofs: add on-disk compressed tail-packing inline support") > Fixes: b15b2e307c3a ("erofs: support on-disk compressed fragments data") > Signed-off-by: Yue Hu Reviewed-by: Gao Xiang Thanks, Gao Xiang