Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1181659rda; Mon, 23 Oct 2023 05:19:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEquQ8eijV5S4KLehzBgV5RypuUu5zHrOBdmT4PX7EOKcEjl1by6RX8Px+LPh/WysA/CPEh X-Received: by 2002:a05:6e02:c2c:b0:357:745a:9e79 with SMTP id q12-20020a056e020c2c00b00357745a9e79mr9297092ilg.26.1698063555740; Mon, 23 Oct 2023 05:19:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698063555; cv=none; d=google.com; s=arc-20160816; b=KA90pHsoohSHjC/LegTnhujOwDmAQy6g2+q9SNlHTS4Kst9rl6cyn0ObaivjQgbILN PCGlHsG0Pki35+aVnUio96GRhOQmyVVU6LBVBP9vR4Yn2/WFtE6jRdBNQKgunjqXTeDm JVcGslERC7tZKlvwcU4jgpUAzf7J7SDLYAAliULR8qRyV8XPExRLGtP40YFxBgr2sMvq Mq9Cv9AoHARyn1/fAM7Ck0J5sIypSrR0IPovoQGiyJwQCk0hicIuCX870FUj2fr4SPiZ 74jdbRa2vjGc0ZARW4qYn4DwWoT6QBRYTW9j6Kth1Rx6wqNzMs8iV0zhDHayrNCBA2cR FcoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=R+4SmN+QX8/BjDGiy6U+GxyMkgd/ZFnJJ3nxScwdPrM=; fh=G5m+bfsA1i85uIfQPHaysX1AiPkH/R8ervUDboIltqI=; b=DTOKds6Kz8PqejhrHaezoKQuLm43xnU252ZXy6yl7nExY749hKAllXODJduZaNYO5S 9KkA4dUb7PqhWxDs3lRL9Krx73ExsWhmBZhCyYr/Vhz13JEqcbtURkZIBXy+EpzfpcKx UJbrsBoEGYHXvMhhyQ/eqjszGyEm0bCTUFVwLQ4syCs9VYodkTH5TxPyRjk78lv8m3RH 9dSy3ZuhcaV57YqI6+BZxguq4IzSmJucfPL77X+k5d+s2AWM8L8XOBc0BrTXp4sf+HIj cs4ImofJoqnSrHlrsBaP9LtPBpWjewETFW7XYGVk32V58OFc4/ag5UqF3498/ugev89g lIAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=njPX+HNj; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id s24-20020a63f058000000b005ae38be0cd2si6307416pgj.835.2023.10.23.05.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 05:19:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=njPX+HNj; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7640F8051162; Mon, 23 Oct 2023 05:19:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231144AbjJWMTL (ORCPT + 99 others); Mon, 23 Oct 2023 08:19:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229996AbjJWMTL (ORCPT ); Mon, 23 Oct 2023 08:19:11 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33BF6FD; Mon, 23 Oct 2023 05:19:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698063549; x=1729599549; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=ErrJCE1bf5l80mKArl/0+fuj5JQv5yol0gyX7rJ0rbs=; b=njPX+HNjrHVS7JnpEDqmrOnQsf50ASC1LwT87DDmocuqTmKv+qVy9Edc 9VkZt/DR0pLPci7zMbEdIbLWxq1GgeaLvb+P2C4OqkIbl3A3LHbFj9iSI RU2cr1Xs/0ho8ESeI9zEYaCrAPdUOwKcXARfiLNdStTX8Lr/zD9ZUzEHu x3yllgIIR3t3z1WH1/cI6rbEEGEnnco36IB8KKPdz7sNhfCzV0Zl4a31k xYlX4wny9Zmn1hWcvPctS55g0yj2dc+QWwcfVmf9tSVWSuR/ETXvgFLku v+ZIuvcgI6Vt1YTGGlXcVpX5l+amsTVBsFDmXSmalWeWvgdwBKiXFRIyq w==; X-IronPort-AV: E=McAfee;i="6600,9927,10872"; a="5451034" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="5451034" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 05:19:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10872"; a="793118206" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="793118206" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga001.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 05:19:05 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC2) (envelope-from ) id 1quttd-00000007w2X-3I8b; Mon, 23 Oct 2023 15:19:01 +0300 Date: Mon, 23 Oct 2023 15:19:01 +0300 From: Andy Shevchenko To: Baokun Li Cc: Linus Torvalds , Josh Poimboeuf , Jan Kara , Nathan Chancellor , Nick Desaulniers , Kees Cook , Ferry Toth , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, yangerkun Subject: Re: [GIT PULL] ext2, quota, and udf fixes for 6.6-rc1 Message-ID: References: <20231019164240.lhg5jotsh6vfuy67@treble> <826dbab6-f6e0-fc02-e5d3-141c00a2a141@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <826dbab6-f6e0-fc02-e5d3-141c00a2a141@huawei.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 23 Oct 2023 05:19:12 -0700 (PDT) On Sat, Oct 21, 2023 at 09:48:38AM +0800, Baokun Li wrote: > On 2023/10/20 23:06, Andy Shevchenko wrote: > > On Fri, Oct 20, 2023 at 05:51:59PM +0300, Andy Shevchenko wrote: > > > On Thu, Oct 19, 2023 at 11:43:47AM -0700, Linus Torvalds wrote: ... > > > I even rebuilt again with just rebased on top of e64db1c50eb5 and it doesn't > > > boot, so we found the culprit that triggers this issue. > > This patch does not seem to cause this problem. Just like linus said, this > patch > has only two slight differences from the previous: > 1) Change "if (err)" to "if (err < 0)" > ??? In all the implementations of dq_op->write_dquot(), the returned value > of err > ??? is not greater than 0. Therefore, this does not cause behavior > inconsistency. > 2) Adding quota_error() > ??? quota_error() does not seem to cause a boot failure. > > Also, you mentioned that the root file system is initramfs. If no other file > system > that supports quota is automatically mounted during startup, it seems that > quota > does not cause this problem logically. > > In my opinion, as Josh mentioned, replace the CONFIG_DEBUG_LIST related > BUG()/BUG_ON() with WARN_ON(), and then check whether the system can be > started normally. If yes, it indicates that the panic is caused by the list > corruption, then, check for the items that may damage the list. If WARN_ON() > is recorded in the dmesg log of the machine after the startup, it is easier > to locate the problem. I mentioned that I have checked that, but okay, lemme double check it. I took the test-mrfld-jr branch and applied that patch on top. And as expected no luck. fstab I have, btw is this $ cat output/target/etc/fstab # /dev/root / ext2 rw,noauto 0 1 proc /proc proc defaults 0 0 devpts /dev/pts devpts defaults,gid=5,mode=620,ptmxmode=0666 0 0 tmpfs /dev/shm tmpfs mode=0777 0 0 tmpfs /tmp tmpfs mode=1777 0 0 tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0 sysfs /sys sysfs defaults 0 0 Not sure if /dev/root affects this all, it's Buildroot + Busybox in initramfs at the end. On the booted machine (clang build of my main branch, based on the latest -rcX): Welcome to Buildroot buildroot login: root # uname -a Linux buildroot 6.6.0-rc7-00142-g9266a02ba229 #28 SMP PREEMPT_DYNAMIC Mon Oct 23 15:00:17 EEST 2023 x86_64 GNU/Linux # mount rootfs on / type rootfs (rw,size=453412k,nr_inodes=113353) devtmpfs on /dev type devtmpfs (rw,relatime,size=453412k,nr_inodes=113353,mode=755) proc on /proc type proc (rw,relatime) devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=666) tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777) tmpfs on /tmp type tmpfs (rw,relatime) tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755) sysfs on /sys type sysfs (rw,relatime) What is fishy here is the size of rootfs, it's only 30M compressed side, I can't be ~450M decompressed. I just noticed this, dunno if it's related. -- With Best Regards, Andy Shevchenko