Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2266269iof; Wed, 8 Jun 2022 00:54:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2poKo4mzuvkS6dWNnzj0COLD4cWAIlBv4xaQUIv0dI5STXLiljiYSNkHKXF7CeCqsNo7A X-Received: by 2002:a17:902:f687:b0:167:58bb:c43f with SMTP id l7-20020a170902f68700b0016758bbc43fmr22888132plg.136.1654674863747; Wed, 08 Jun 2022 00:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654674863; cv=none; d=google.com; s=arc-20160816; b=MArnbPrWTs/WIqe/W0HhugmwUI6Kpb6qaFB3ETgMCVSCy4d+i5XXQ8VHqm37FDv05x Q3A91LQIcIuS/9cxNf4EttF78+tAwtRB0UT7oN8bQ2IashbECChpor5xo3O7IR9BXat6 rB0ppvf2vtIfqmDR1U2vyMMF3nrnbV5D+20GKhoWOWOkAY+gAhrElqMmBHsIai7TerX7 KX7+ZdtN/5uHweAgzpSRL5yHiuBUbFRk0fn6GJICb7r6GfeRklXUl+uzzENmRohITWGs i+8YsY0bRs9UDsgjE8n5vHijmPYuW1aGI3QjGqV1OXXcXmqAiT1kRlUJtW/mWNENcSdW NcaQ== 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:dkim-signature; bh=6bOa4esw0xksLVfNdAT6B93rV/P/8VSGEKMP6EjzR0E=; b=YrKg4A1e80uu303islHYwPTyZNJPr+Yo4jr7HuQAgBgB9jOFBMHKNO8ADgB7yKrxon KYkGnP9FMSjSgZ1neE+Qybaac90R3qNjR/hH3p6Ypi2JQ6hosVsIDQwkZ5FGwaoMbYu6 8CPO3RYeXOoqIS5oIYENhRbtjkjd8Vk/8gx1F3aWpdXhrx1hDJud38xzouvKlT2bGIDN lEP9fC+oZ9EgShI0CCb9w6URoN2ZxgMq7Ny9/27YimrcP4yn331SNxVXPoejPo9SGCig u3dvPwCixJnzGcc2b6qPBQlz07Ib52NwHnQf41bK5PJHypIbEsMgyVkGBnjajS9QqahC 3cRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K6KpXwM8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h6-20020a636c06000000b003fde9094ba3si2457507pgc.757.2022.06.08.00.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 00:54:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K6KpXwM8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A853F1D5186; Wed, 8 Jun 2022 00:23:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233584AbiFHFZ2 (ORCPT + 99 others); Wed, 8 Jun 2022 01:25:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234669AbiFHFYy (ORCPT ); Wed, 8 Jun 2022 01:24:54 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA36A167CB for ; Tue, 7 Jun 2022 19:39:58 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id q12-20020a17090a304c00b001e2d4fb0eb4so22537712pjl.4 for ; Tue, 07 Jun 2022 19:39:58 -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=6bOa4esw0xksLVfNdAT6B93rV/P/8VSGEKMP6EjzR0E=; b=K6KpXwM81tTGGNFDdq17Lj1eMk1q3eODHH8nocGcaU9nWe7rFntrd/gnI4dJmrX5ot jelT47mS9pdJT0S2PzSCrNgL5Sh63CeXCG+aYcN+ywbxrVtSsSCUllZRXU38BSZmlUri DAKxKJgyjtIwfLg5ysES88sOtfU39kmTixM4U= 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=6bOa4esw0xksLVfNdAT6B93rV/P/8VSGEKMP6EjzR0E=; b=QQ76NgZgH/cYmWyrl0XjRsh5zbGfAo0im7xmmt5dG07aREFYiaqlN0OtEt6dRsVUMY DN8K+hsMdV5zxLxZ8RNMs/kkLnRteuy1pKgX6vSIhEXZq2ajCk+tSoyyt5B4wFtcYBGh A4eZn+412vC8Fgpwh/QTXtDSKa1E+W+ixiSxcSnNdXnohh4BGZkH82Oubnpt0bmVDBqb upy/EZtnmNCG1nLHZod1lOo1HqeM4aZi6iUW1t6ni6onp2KZl4UJrVtt4ufx+LmwuAOC R90mHUXVjUX3Q8JpDFtqq5B3qLG23DlHp8MOLGCY181wWkFiBPzBCYd8Q94LUDTZ5cKw A/xg== X-Gm-Message-State: AOAM531w1+Bo5I3ToYPcXJDmvgGn0K/ZmUEhxz6Pi1hF87W7l4S9qQUL n0LmxRa/5iD9wnklARYPkdTkDA== X-Received: by 2002:a17:90b:3a8f:b0:1e8:7669:8a2f with SMTP id om15-20020a17090b3a8f00b001e876698a2fmr16728205pjb.55.1654655998366; Tue, 07 Jun 2022 19:39:58 -0700 (PDT) Received: from google.com ([2401:fa00:8f:203:463d:a192:6128:66e]) by smtp.gmail.com with ESMTPSA id 84-20020a621857000000b0050dc7628158sm13612168pfy.50.2022.06.07.19.39.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 19:39:57 -0700 (PDT) Date: Wed, 8 Jun 2022 11:39:52 +0900 From: Sergey Senozhatsky To: Minchan Kim Cc: Naresh Kamboju , open list , linux-fsdevel@vger.kernel.org, Linux ARM , "open list:KERNEL SELFTEST FRAMEWORK" , linux-block , regressions@lists.linux.dev, Jens Axboe , Sergey Senozhatsky , 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: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On (22/06/07 16:52), Minchan Kim wrote: > > rootfs: https://oebuilds.tuxbuild.com/29zhlbEc3EWq2wod9Uy964Bp27q/images/am57xx-evm/rpb-console-image-lkft-am57xx-evm-20220601222434.rootfs.ext4.gz > > kernel: https://builds.tuxbuild.com/29zhqJJizU2Y7Ka7ArhryUOrNDC/zImage > > > > Boot command, > > /usr/bin/qemu-system-aarch64 -cpu host,aarch64=off -machine > > virt-2.10,accel=kvm -nographic -net > > nic,model=virtio,maaacaddr=BA:DD:AD:CC:09:04 -net tap -m 2048 -monitor > > none -kernel kernel/zImage --append "console=ttyAMA0 root=/dev/vda rw" > > -hda rootfs/rpb-console-image-lkft-am57xx-evm-20220601222434.rootfs.ext4 > > -m 4096 -smp 2 > > > > # cd /opt/kselftests/default-in-kernel/zram > > # ./zram.sh > > > > Allow me sometime I will try to bisect this problem. > > Thanks for sharing the info. > > I managed to work your rootfs with my local arm build > based on the problematic git tip. > However, I couldn't suceed to reproduce it. > > I needed to build zsmalloc/zram built-in instead of modules > Is it related? Hmm, > > Yeah, It would be very helpful if you could help to bisect it. This looks like a NULL lock->name dereference in lockdep. I suspect that somehow local_lock doesn't get .dep_map initialized. Maybe running the kernel with CONFIG_DEBUG_LOCK_ALLOC would help us? Naresh, can you help us with this?