Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp404902rdb; Thu, 19 Oct 2023 07:50:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxko+3hWhYBevhFSLNUHImbJ0lU78ZZ/d6Cr5GNYtlkKCMZxgDIIxOdoX2EmA+E8aQrijR X-Received: by 2002:a05:6358:611e:b0:142:d097:b14a with SMTP id 30-20020a056358611e00b00142d097b14amr1433736rws.13.1697727000970; Thu, 19 Oct 2023 07:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697727000; cv=none; d=google.com; s=arc-20160816; b=Jeo22jcQD2XBMI9O3cN6Ig2y+/DjwQLx6K/Q2EeLs0tletyf87PEzTK5rFAdLoYSP3 k/2WpYUiz4MrsUoslDpoV3WKTNoJ9OummOX55P3PJttw/oi+B55LlH5E5C5kqFjFkQzz +UuHG0FH9uNbJkwoS8Hj0MBRRWr4IUiaJ+t4q4rUYgIZFyX2UHKaeumLKrZu5B65eiy7 S6Upx7ULjehAphqnj2P8X0A6QaJzgONXeR20mY7ZEZ4QYMZvk4wklDDd7enMtOFg2u6p rEVgLRBppmCGZ10HoOefetcOVMj0CsFOxpqcyP7AM3Sgm8PfjOstJgMh8rQ80NUCOHCa kceA== 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=nErCAWNK74n4LSJfaBXoxu1bIjMjdCG9Kl5w6Eln9SE=; fh=jArrF/MxqJPTfiigKlKO8ct9jtbJ6Y8sWjaVqtiurgs=; b=V+732Xj7pciadqmRrlqP9Uu++ragI/dHgg+75fCiQhEjpB/J9vCSS3vNcAVkkrDwxL 3+NTC1heUpXw0lKD8X+lWeRDqOfqNdEbmjPeJZWjKo52AF0Nw6QB07uYAs82tFkJk/pg h6pVCMZNEmwSbW+5VmW4+C3KE45jF2IeelUOrirV3/GC2beB0ML8lxVTTF0dOxQlWoyd Y7dpA+zqSbKQdgebBhN2hPUJYQezGDcEJjtZtBysa9W47f1MwXqrNu8nZrynOU8dGdCS FTt2hY3NuHIgI0UuMVyTFdhjWViYn3TaMU09nrlYWVNLrkkxAJXf/6iXyT+Q06hDX5J8 Nplw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bDOt0ePm; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z21-20020aa79f95000000b006bd27e41c15si6134456pfr.291.2023.10.19.07.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 07:50:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bDOt0ePm; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 801AA824684C; Thu, 19 Oct 2023 07:49:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346184AbjJSOtd (ORCPT + 99 others); Thu, 19 Oct 2023 10:49:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346219AbjJSOt3 (ORCPT ); Thu, 19 Oct 2023 10:49:29 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22A37114; Thu, 19 Oct 2023 07:49:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697726965; x=1729262965; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=xKjXmfpvYB4Hz8IbECMTHSmbNOsKSD8+R6RguTXxNVk=; b=bDOt0ePmjD/sHKg/wuotw9fvG6ze9HlrIjL93M28LJ6U5ncnOGxdUV6o jtbBvK4GJfQomju0gsUVPVNFH2kIJ6k8lLzkEoulvZNHwZ8Hjw2/FXsKP rMTp0wyq6NnnTSkpK9wLF50F+5Fre8ZJ3NCo2kIDnhyOVrCfJiTAvJW2/ +3ULJc5lsw6gRvhJmRNpu+6C5eW1t+mExnJGphrlCCnCREm6Z6VoRMDul UHYKgB0dDP9TPeKO8+rC4EiUew1xToxZfKoT0sn/A7SOezIawkTiyqMlx Fsiummfkuo/qoopBgnHgom5KtX8bYlj59uj5LCzJV8akwbtZkV+rdIcrQ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="390156488" X-IronPort-AV: E=Sophos;i="6.03,237,1694761200"; d="scan'208";a="390156488" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2023 07:49:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="930628206" X-IronPort-AV: E=Sophos;i="6.03,237,1694761200"; d="scan'208";a="930628206" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2023 07:49:21 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC2) (envelope-from ) id 1qtUKs-00000006u6q-2ctA; Thu, 19 Oct 2023 17:49:18 +0300 Date: Thu, 19 Oct 2023 17:49:18 +0300 From: Andy Shevchenko To: Jan Kara , Nathan Chancellor , Josh Poimboeuf , Nick Desaulniers , Kees Cook Cc: Ferry Toth , Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Subject: Re: [GIT PULL] ext2, quota, and udf fixes for 6.6-rc1 Message-ID: References: <20231018184613.tphd3grenbxwgy2v@quack3> <20231019101854.yb5gurasxgbdtui5@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.8 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,URIBL_SBL_A autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 19 Oct 2023 07:49:55 -0700 (PDT) On Thu, Oct 19, 2023 at 05:12:59PM +0300, Andy Shevchenko wrote: > On Thu, Oct 19, 2023 at 03:01:43PM +0300, Andy Shevchenko wrote: > > On Thu, Oct 19, 2023 at 12:18:54PM +0200, Jan Kara wrote: > > > On Thu 19-10-23 11:46:58, Andy Shevchenko wrote: > > > > On Wed, Oct 18, 2023 at 08:46:13PM +0200, Jan Kara wrote: > > > > > On Tue 17-10-23 19:02:52, Andy Shevchenko wrote: > > > > > > On Tue, Oct 17, 2023 at 06:34:50PM +0300, Andy Shevchenko wrote: > > > > > > > On Tue, Oct 17, 2023 at 06:14:54PM +0300, Andy Shevchenko wrote: > > > > > > > > On Tue, Oct 17, 2023 at 05:50:10PM +0300, Andy Shevchenko wrote: > > > > > > > > > On Tue, Oct 17, 2023 at 04:42:29PM +0300, Andy Shevchenko wrote: > > > > > > > > > > On Tue, Oct 17, 2023 at 03:32:45PM +0200, Jan Kara wrote: > > > > > > > > > > > On Tue 17-10-23 14:46:20, Andy Shevchenko wrote: > > > > > > > > > > > > On Tue, Oct 17, 2023 at 01:32:53PM +0300, Andy Shevchenko wrote: > > > > > > > > > > > > > On Tue, Oct 17, 2023 at 01:29:27PM +0300, Andy Shevchenko wrote: > > > > > > > > > > > > > > On Tue, Oct 17, 2023 at 01:27:19PM +0300, Andy Shevchenko wrote: > > > > > > > > > > > > > > > On Wed, Aug 30, 2023 at 12:24:34PM +0200, Jan Kara wrote: > > > > > > > > > > > > > > > > Hello Linus, ... > > > > > > > > > > > > > > > This merge commit (?) broke boot on Intel Merrifield. > > > > > > > > > > > > > > > It has earlycon enabled and only what I got is watchdog > > > > > > > > > > > > > > > trigger without a bit of information printed out. > > > > > > > > > > > > > > > > > > > > > > > > Okay, seems false positive as with different configuration it > > > > > > > > > > > > boots. It might be related to the size of the kernel itself. > > > > > > > > > > > > > > > > > > > > > > Ah, ok, that makes some sense. > > > > > > > > > > > > > > > > > > > > I should have mentioned that it boots with the configuration say "A", > > > > > > > > > > while not with "B", where "B" = "A" + "C" and definitely the kernel > > > > > > > > > > and initrd sizes in the "B" case are bigger. > > > > > > > > > > > > > > > > > > If it's a size (which is only grew from 13M->14M), it's weird. > > > > > > > > > > > > > > > > > > Nevertheless, I reverted these in my local tree > > > > > > > > > > > > > > > > > > 85515a7f0ae7 (HEAD -> topic/mrfld) Revert "defconfig: enable DEBUG_SPINLOCK" > > > > > > > > > 786e04262621 Revert "defconfig: enable DEBUG_ATOMIC_SLEEP" > > > > > > > > > 76ad0a0c3f2d Revert "defconfig: enable DEBUG_INFO" > > > > > > > > > f8090166c1be Revert "defconfig: enable DEBUG_LIST && DEBUG_OBJECTS_RCU_HEAD" > > > > > > > > > > > > > > > > > > and it boots again! So, after this merge something affects one of this? > > > > > > > > > > > > > > > > > > I'll continuing debugging which one is a culprit, just want to share > > > > > > > > > the intermediate findings. > > > > > > > > > > > > > > > > CONFIG_DEBUG_LIST with this merge commit somehow triggers this issue. > > > > > > > > Any ideas? > > > > > > > > > > > > > Dropping CONFIG_QUOTA* helps as well. > > > > > > > > > > > > More precisely it's enough to drop either from CONFIG_DEBUG_LIST and CONFIG_QUOTA > > > > > > to make it boot again. > > > > > > > > > > > > And I'm done for today. > > > > > > > > > > OK, thanks for debugging! So can you perhaps enable CONFIG_DEBUG_LIST > > > > > permanently in your kernel config and then bisect through the quota changes > > > > > in the merge? My guess is commit dabc8b20756 ("quota: fix dqput() to follow > > > > > the guarantees dquot_srcu should provide") might be the culprit given your > > > > > testing but I fail to see how given I don't expect any quotas to be used > > > > > during boot of your platform... BTW, there's also fixup: 869b6ea160 > > > > > ("quota: Fix slow quotaoff") merged last week so you could try testing a > > > > > kernel after this fix to see whether it changes anything. > > > > > > > > It's exactly what my initial report is about, CONFIG_DEBUG_LIST was there > > > > always with CONFIG_QUOTA as well. > > > > > > Ah, ok. > > > > > > > Two bisections (v6.5 .. v6.6-rc1 & something...v6.6-rc6) pointed out to > > > > merge commit! > > > > > > I thought CONFIG_DEBUG_LIST arrived through one path, some problematic > > > quota change arrived through another path and because they cause problems > > > only together, then bisecting to the merge would be exactly the outcome. > > > Alas that doesn't seem to be the case :-|. > > > > > > > I _had_ tried to simply revert the quota changes (I haven't > > > > said about that before) and it didn't help. I'm so puzzled with all this. > > > > > > Aha, OK. If even reverting quota changes doesn't help, then it's really > > > weird... > > > > Lemme to confirm that, it might be that I forgot to update configuration in > > between. > > So, what I have done so far. > 1) I have cleaned ccaches and stuff as I used it to avoid collisions; > 2) I have confirmed that CONFIG_DEBUG_LIST affects boot, the repo > I'm using is published here [0][1]; > 3) reverted quota patches until before this merge ([2] - last patch), > still boots; > 4) reverted disabling of CONFIG_DEBUG_LIST [2], doesn't boot; > 5) okay, rebased on top of merge, i.e. 1500e7e0726e, with DEBUG_LIST [3], > doesn't boot; > 6) rebased [3] on one merge before, i.e. 63580f669d7f [4], voil? -- it boots!; > > And (tadaam!) I have had an idea for a while to replace GCC with LLVM > (at least for this test), so [0] boots as well! > > So, this merge triggered a bug in GCC, seems like... And it's _the_ merge > commit, which is so-o weird! > > $ gcc --version > gcc (Debian 13.2.0-4) 13.2.0 > Copyright (C) 2023 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For the cleaner experiment I took [0], cleaned $OUTPUT and ccache (fully) and build the kernel with $ clang --version Debian clang version 16.0.6 (15) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin it boots, Then I have done the same with GCC (see above the version) and it does not boot. [0]: https://bitbucket.org/andy-shev/linux/src/test-mrfld-dbg-list/ [1]: https://bitbucket.org/andy-shev/linux/src/test-mrfld/ [2]: https://bitbucket.org/andy-shev/linux/src/test-mrfld-no-quota-dbg-list/ [3]: https://bitbucket.org/andy-shev/linux/src/test-mrfld-after-merge-dbg-list/ [4]: https://bitbucket.org/andy-shev/linux/src/test-mrfld-before-merge/ -- With Best Regards, Andy Shevchenko