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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52801C43334 for ; Thu, 9 Jun 2022 11:02:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236382AbiFILCt (ORCPT ); Thu, 9 Jun 2022 07:02:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234782AbiFILCt (ORCPT ); Thu, 9 Jun 2022 07:02:49 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEA852317E for ; Thu, 9 Jun 2022 04:02:47 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id h192so14736868pgc.4 for ; Thu, 09 Jun 2022 04:02:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=eA2rSMTUFSewTOnPsmOrnE6HCmgRpXaUuyafBR4ipFo=; b=PhF2l/vtHVZjCKAqz4OpktNX8yi0juQT7/9mlOjaRI+WJ/8mFLlvmrChupswhPlMoa bc7vMTDPOhZSuBdmsu8Ao+uRlmChD/jUJbcP2miIjzmjYzQ9L3TWeewo4w8AdkVg1o6p 4Y0jslyAC5Xw0nkFpxZEl70DVxJkswiTrwXxo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=eA2rSMTUFSewTOnPsmOrnE6HCmgRpXaUuyafBR4ipFo=; b=Zfxj0Z+XC6PlyA8ftooPHmzUqCniHR9d5DZ68cvVt8TFtbDBJveqFB18gY7pZJGY6Y xwfKkGN3Lz29wk2EhC3vrK305R0bsexq5m3gOTRmq2uNTvuGAZPazqr+dgCNmTr3aJQF zyDaOhhReU1eO8nMW9lqP1wUhV78tlpHIfWDKfJzjfV83t3q96CENrhtLkRVvtLgc3aK gT+ZQN303Tr2O389h1MBRhgPBHbdhsKwJqeSp2L8D8Joq8zxNA9yWG0SX0fBexWWf++s fFA2zoegyDZ8QxR5aMiHZzZrKuw2NOARpDDtFfjgDO0ri91/d/HlO0AUeSgmxHRqgBCz O0rw== X-Gm-Message-State: AOAM530/3QZRndPFlLkqwWT2u3P69D6N/UXiI+aOiMx9C55SvE1iCaSa 8kl1YMACNDuatCAikDdDsGppKQ== X-Google-Smtp-Source: ABdhPJyRD8M4C4AIWlnMkoCdrxA428zPc/65lMrKv7boT8iwH7ATo4M+sNcCYcjeZm4RCxc0iZEi5Q== X-Received: by 2002:a63:8242:0:b0:3fe:3601:747f with SMTP id w63-20020a638242000000b003fe3601747fmr6713986pgd.314.1654772567192; Thu, 09 Jun 2022 04:02:47 -0700 (PDT) Received: from google.com ([240f:75:7537:3187:1572:8d44:6d26:109d]) by smtp.gmail.com with ESMTPSA id t1-20020a1709027fc100b00163f2f9f07csm194145plb.48.2022.06.09.04.02.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 04:02:46 -0700 (PDT) Date: Thu, 9 Jun 2022 20:02:41 +0900 From: Sergey Senozhatsky To: Minchan Kim Cc: Sergey Senozhatsky , Naresh Kamboju , open list , linux-fsdevel@vger.kernel.org, Linux ARM , "open list:KERNEL SELFTEST FRAMEWORK" , linux-block , regressions@lists.linux.dev, Jens Axboe , Nitin Gupta Subject: Re: qemu-arm: zram: mkfs.ext4 : Unable to handle kernel NULL pointer dereference at virtual address 00000140 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On (22/06/08 13:45), Minchan Kim wrote: > > I am trying to understand the problem. AFAIK, the mapping_area was > static allocation per cpu so in zs_cpu_down, we never free the > mapping_area itself. Then, why do we need to reinitialize the local > lock again? Well... Something zero-s out that memory. NULL deref in strcmp() in lockdep points at NULL ->name. So I'm merely testing my theories here. If it's not area lock then it's pool->migrate_lock? 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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 18217C433EF for ; Thu, 9 Jun 2022 11:04:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HJfP6wTUgox/8uUrQhjMs0FE7489elhyh5paUk5p6vQ=; b=SVaUF7x1BKj1lR Z18dK0u92Worral2S91IKllX3o4O/XY41nn1TJTZ+F6FEbd5onizCA/FtMHxAYjiwyC/r2VNk3hB+ VUQ2W49nSYCuCN5A85bQ8g5QlHd/yZ9KwtWQJCjXlzS8U0ZIMwxj7yVGxZZ/QTlXM252BUYA53DwX n1Z2eb3agVTwKbDWnAnbhdNL3fj2Hd4GmEx0ubQohPT5/icSgGVkUTRawJBzEPjJpZfPcx5aF+1um xTm+HG5lesBt+Z8XZN15smx4NGsZX9rItROPFxNmUncFZ4ktZjrXOMlNCfZUeJ4M7zmmBZonXts97 nND/AHqQrasRBOxmTnbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzFwB-001BOs-Vb; Thu, 09 Jun 2022 11:02:52 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzFw9-001BOY-LY for linux-arm-kernel@lists.infradead.org; Thu, 09 Jun 2022 11:02:51 +0000 Received: by mail-pg1-x533.google.com with SMTP id s135so5885638pgs.10 for ; Thu, 09 Jun 2022 04:02:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=eA2rSMTUFSewTOnPsmOrnE6HCmgRpXaUuyafBR4ipFo=; b=PhF2l/vtHVZjCKAqz4OpktNX8yi0juQT7/9mlOjaRI+WJ/8mFLlvmrChupswhPlMoa bc7vMTDPOhZSuBdmsu8Ao+uRlmChD/jUJbcP2miIjzmjYzQ9L3TWeewo4w8AdkVg1o6p 4Y0jslyAC5Xw0nkFpxZEl70DVxJkswiTrwXxo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=eA2rSMTUFSewTOnPsmOrnE6HCmgRpXaUuyafBR4ipFo=; b=S3hRKfvo6TAGa9EwTxyMVruNdMFYHx0LLxOHw0nXm92efqghJK+R/n0BbuJ5L+By6+ 5/1Qu9h9NWS/DDmxrMMqMjJ5Vdb1FEYzFjZRiSmGS7ao7tV6I/na10fZkxhjMKPFugye /RjO7TSVGzhcDFIX+VP5wY0PuimsQdd8Q6OzEzmhFVVyRqu6XpYxo9lEUxhuvgzZwrd4 gX+cPI+wEoVFiAsHOmWEhb7q7OLNd43xnVRvHycNZjKO/yaboxU8cnPibLFLJYvDEHnS vYQ+VGkgDUcMYGhZj4/rUWt72OwnIWV9w87RBBj+RCyoleLzDiBcq+KgHDdWf5uAqyLp 1TmA== X-Gm-Message-State: AOAM531OQIi6+AP0v2t8wWkPYPoiglDMqvjCtrZ9XYe+rGMbkcjR8cq/ /uUm9NSwfpctH32DayDfPfaFCCPTbBojHQ== X-Google-Smtp-Source: ABdhPJyRD8M4C4AIWlnMkoCdrxA428zPc/65lMrKv7boT8iwH7ATo4M+sNcCYcjeZm4RCxc0iZEi5Q== X-Received: by 2002:a63:8242:0:b0:3fe:3601:747f with SMTP id w63-20020a638242000000b003fe3601747fmr6713986pgd.314.1654772567192; Thu, 09 Jun 2022 04:02:47 -0700 (PDT) Received: from google.com ([240f:75:7537:3187:1572:8d44:6d26:109d]) by smtp.gmail.com with ESMTPSA id t1-20020a1709027fc100b00163f2f9f07csm194145plb.48.2022.06.09.04.02.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 04:02:46 -0700 (PDT) Date: Thu, 9 Jun 2022 20:02:41 +0900 From: Sergey Senozhatsky To: Minchan Kim Cc: Sergey Senozhatsky , Naresh Kamboju , open list , linux-fsdevel@vger.kernel.org, Linux ARM , "open list:KERNEL SELFTEST FRAMEWORK" , linux-block , regressions@lists.linux.dev, Jens Axboe , Nitin Gupta Subject: Re: qemu-arm: zram: mkfs.ext4 : Unable to handle kernel NULL pointer dereference at virtual address 00000140 Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220609_040249_976998_B9220B58 X-CRM114-Status: UNSURE ( 9.15 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On (22/06/08 13:45), Minchan Kim wrote: > > I am trying to understand the problem. AFAIK, the mapping_area was > static allocation per cpu so in zs_cpu_down, we never free the > mapping_area itself. Then, why do we need to reinitialize the local > lock again? Well... Something zero-s out that memory. NULL deref in strcmp() in lockdep points at NULL ->name. So I'm merely testing my theories here. If it's not area lock then it's pool->migrate_lock? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel