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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4694BC61DA4 for ; Thu, 9 Mar 2023 14:28:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231684AbjCIO2s (ORCPT ); Thu, 9 Mar 2023 09:28:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbjCIO2q (ORCPT ); Thu, 9 Mar 2023 09:28:46 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 417D1B5AAE; Thu, 9 Mar 2023 06:28:44 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id D467E618B8; Thu, 9 Mar 2023 14:28:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B48E8C433EF; Thu, 9 Mar 2023 14:28:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678372123; bh=60Yf7G5xHK2RG+spG0/BSdW4iD21Ab+2egSl11944Fw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=nX/ZyQ73OyiDDKJUkdEz83IGJr1eBcTpyYRAPffY7e1Mv1sErbrGI9cI5aVGBj5bB IzXBakAnH9KM9uHObPyOgHaZ0Jw/9UsuyHpn8tnsKqp2J8dNaMjcZzDwZjlEFc+ItJ dPNEBSeyeRblX7RsflzsH0ySrhmuPWNq+ziIiO2Q7YCRl1J6CEIfZf3rEhFh1ZkiNJ LCBa9pleX5WUSUc83lylFwPs3QChut6LiOpkEdSwSwUFOYcy4anyzkAgbc/Ljt5lQ0 jLnmz3Xs1GCNizg4Pri2GjPXacyTlaRtMOaAg5VsV64NuhnFYxF87NuWeYGIiuZ1Mt vkPo5klVaD/vg== Message-ID: Date: Thu, 9 Mar 2023 22:28:38 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] erofs: fix wrong kunmap when using LZMA on HIGHMEM platforms Content-Language: en-US To: Gao Xiang , linux-erofs@lists.ozlabs.org Cc: LKML , stable@vger.kernel.org References: <20230305134455.88236-1-hsiangkao@linux.alibaba.com> From: Chao Yu In-Reply-To: <20230305134455.88236-1-hsiangkao@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/3/5 21:44, Gao Xiang wrote: > As the call trace shown, the root cause is kunmap incorrect pages: > > BUG: kernel NULL pointer dereference, address: 00000000 > CPU: 1 PID: 40 Comm: kworker/u5:0 Not tainted 6.2.0-rc5 #4 > Workqueue: erofs_worker z_erofs_decompressqueue_work > EIP: z_erofs_lzma_decompress+0x34b/0x8ac > z_erofs_decompress+0x12/0x14 > z_erofs_decompress_queue+0x7e7/0xb1c > z_erofs_decompressqueue_work+0x32/0x60 > process_one_work+0x24b/0x4d8 > ? process_one_work+0x1a4/0x4d8 > worker_thread+0x14c/0x3fc > kthread+0xe6/0x10c > ? rescuer_thread+0x358/0x358 > ? kthread_complete_and_exit+0x18/0x18 > ret_from_fork+0x1c/0x28 > ---[ end trace 0000000000000000 ]--- > > The bug is trivial and should be fixed now. It has no impact on > !HIGHMEM platforms. > > Fixes: 622ceaddb764 ("erofs: lzma compression support") > Cc: # 5.16+ > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,