Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1402154lqp; Mon, 15 Apr 2024 05:47:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxaBjoiajY0bPJGsqzT95g0ps1RBzwN9FUdZQ1aTaL17Oj/d3V7cLDrK6vfV+yJpgGGhUw7aLfUv8x2Q06oJp+JaNphTII1s5meKlgsA== X-Google-Smtp-Source: AGHT+IEA+UaWqJpKJXc8ZOHIZ+32+NFDgjs/KAGLtV2ogf7qjGnlz412upRdWWU1tswgwlFMMFya X-Received: by 2002:ac8:7f81:0:b0:436:da73:2000 with SMTP id z1-20020ac87f81000000b00436da732000mr6567588qtj.15.1713185248284; Mon, 15 Apr 2024 05:47:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713185248; cv=pass; d=google.com; s=arc-20160816; b=fZj8tJ9wntdolgrIl5NAYzzuIV/0UqF0863NRE9Mz973NPBjsetrjJCpPVbTQe27HJ obi8FS6ESDiY0ljuiyw/N8FmV4g1aff3hkP3NIiS3hO/YVbTr2izL5QCg5n+crCJPClT gfVgy6Vw2u+h+/Z3rLbBMqwVJOGWxlh/PNnlbEVz5N48jbk/1AH/4aRGB1S0ijaLuLLb cN+pIrnlQz0B/fy9T9HrcnfxhSN8mHzNF4JoDv/cjfNZSMiGkj4uV5+rlX9cv09oWvgj TRJyHcXxBvqQl9UoxHh7mq1sSi+TehMBz2OCPc5ZTsp0NqBt7jS62xMEyhGmza02LpfP bEyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:from :subject:cc:to:message-id:date:dkim-signature; bh=iqvE17BmHxvMsfeYKvlGITccJalVleSlR/Y3VWC4ZBA=; fh=DFjXESEtjOzAJ1QGWCvJigX1kVgFgLTFTAMmhpSmwxU=; b=oFJeRHgwd4556UpZL+sdh89MFP/HGvSzuw7bzPTI1s2iflO44xcEXDyBSBUmcr1GLz 0pOUusb4SfVOmQzUPfEck52y+slBVxHUbA5NJkPDP0E/VySgT9GSG+xRxB1JYlgPH1RQ Uijhnf63JHVTI1P+n/YeGUUXyrCeJohaqpvDgsXj3BHKlQB/y5opGiYWbCug5l44flPd E12Ne3/ApwFa69Qs9pkjPoPwxMJc2iRIkPp3WTC9ykvmT2NTag9u0dZFD4O4QI7O9TCm jrMDVkxLh9y4UxlaU+3KyAyeyVd14nXR7lfNtUXkZse7FQoUl6wTXY1jtPJDa9CztH3z psQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mail.big.or.jp header.s=_dkimselector header.b=Vm9emoVL; arc=pass (i=1 spf=pass spfdomain=big.or.jp dkim=pass dkdomain=mail.big.or.jp dmarc=pass fromdomain=big.or.jp); spf=pass (google.com: domain of linux-kernel+bounces-145092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145092-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=big.or.jp Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e11-20020ac85dcb000000b00435161444efsi10089375qtx.269.2024.04.15.05.47.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 05:47:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@mail.big.or.jp header.s=_dkimselector header.b=Vm9emoVL; arc=pass (i=1 spf=pass spfdomain=big.or.jp dkim=pass dkdomain=mail.big.or.jp dmarc=pass fromdomain=big.or.jp); spf=pass (google.com: domain of linux-kernel+bounces-145092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145092-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=big.or.jp Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id EF75D1C20F23 for ; Mon, 15 Apr 2024 12:47:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CA6871723; Mon, 15 Apr 2024 12:47:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mail.big.or.jp header.i=@mail.big.or.jp header.b="Vm9emoVL" Received: from mail.big.or.jp (mail.big.or.jp [210.197.72.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 530006FE3D; Mon, 15 Apr 2024 12:47:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.197.72.39 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713185236; cv=none; b=Olgh7OBdrVWdk2soaDC8Gqr+j5PVmulue3WKh9wpuvCDtqOzCfJBfAY+OorXSJgyXlSNtDWp8JaOUTrawz+U4S4ZkMuO+KULLvFzr1jl8ciOc85eAOzx/d5RUSw35ds5DoDFofv+INenHt19O1EAIHwE6KLvYPrrpk/4wGHmucM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713185236; c=relaxed/simple; bh=nOvavCeBcTWwyTpYhiRfhLBO3noy5XdlXFWcJAaTGec=; h=Date:Message-Id:To:Cc:Subject:From:In-Reply-To:References: Mime-Version:Content-Type; b=H3U8DRCHxKm/rJQ2W9jWE54s9PzfIXIrh0SF/lWbzqC0mhnv2TCYfmvs/nYqVBlihpkFhEi1bE1mRVE7lFG/otDzYuaHvT6l7df6EvXKEfjQsEJ229V9ThFD+cM5+Ao4+UZB8wYa5yEI0/GDOdLewYkfmfG6Lac6zscvG1SbpDs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=big.or.jp; spf=pass smtp.mailfrom=big.or.jp; dkim=pass (1024-bit key) header.d=mail.big.or.jp header.i=@mail.big.or.jp header.b=Vm9emoVL; arc=none smtp.client-ip=210.197.72.39 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=big.or.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=big.or.jp Received: from localhost (unknown [IPv6:2409:250:40:1a00:d65d:64ff:fef1:3a80]) by mail.big.or.jp (Postfix) with ESMTPA id 3B8BD16044B; Mon, 15 Apr 2024 21:47:09 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.big.or.jp; s=_dkimselector; t=1713185229; bh=iqvE17BmHxvMsfeYKvlGITccJalVleSlR/Y3VWC4ZBA=; h=Date:To:Cc:Subject:From:In-Reply-To:References; b=Vm9emoVLmE0lAJ6dHuaRWzJ1Ib9m8urTsTE1qJA2fDFk8eYZvEw9kgkbOtNcSUQqK QaukQWIAZG/qRKT9/m2lczEMXiHyA4kbDVc/N++4gJLaAhL3uPC6WGbWMuEZXpK9Rz YXNI8ZemDrFExofwWHc3LzgIn5YEZLw6AIv06o30= Date: Mon, 15 Apr 2024 21:47:04 +0900 (JST) Message-Id: <20240415.214704.2195618259755902678.sian@big.or.jp> To: greg@kroah.com Cc: holger@applied-asynchrony.com, Naohiro.Aota@wdc.com, regressions@lists.linux.dev, dsterba@suse.com, wqu@suse.com, linux-btrfs@vger.kernel.org, clm@fb.com, josef@toxicpanda.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: btrfs: sanity tests fails on 6.8.3 From: Hiroshi Takekawa In-Reply-To: <2024041508-refocus-cycling-09e8@gregkh> References: <3b2d9a1c-37d2-47f4-b0b4-a9d6c34d2c7d@applied-asynchrony.com> <2024041508-refocus-cycling-09e8@gregkh> X-Mailer: Mew version 6.8 on Emacs 29.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi, Thank you for all your replies. I cherry-picked b2136cc288fc and the ssanity tests work well. From: Greg KH Subject: Re: btrfs: sanity tests fails on 6.8.3 Date: Mon, 15 Apr 2024 09:33:27 +0200 > On Mon, Apr 15, 2024 at 09:25:58AM +0200, Holger Hoffst=E4tte wrote: >> On 2024-04-15 07:24, Naohiro Aota wrote: >> > On Mon, Apr 15, 2024 at 07:11:15AM +0200, Linux regression trackin= g (Thorsten Leemhuis) wrote: >> > > [adding the authors of the two commits mentioned as well as the = Btrfs >> > > maintainers and the regressions & stable list to the list of rec= ipients] >> > > = >> > > On 15.04.24 05:56, Hiroshi Takekawa wrote: >> > > > = >> > > > Module loading fails with CONFIG_BTRFS_FS_RUN_SANITY_TESTS ena= bled on >> > > > 6.8.3-6.8.6. >> > > > = >> > > > Bisected: >> > > > Reverting these commits, then module loading succeeds. >> > > > 70f49f7b9aa3dfa70e7a2e3163ab4cae7c9a457a >> > > = >> > > FWIW, that is a linux-stable commit-id for 41044b41ad2c8c ("btrf= s: add >> > > helper to get fs_info from struct inode pointer") [v6.9-rc1, v6.= 8.3 >> > > (70f49f7b9aa3df)] >> > > = >> > > > 86211eea8ae1676cc819d2b4fdc8d995394be07d >> > = >> > It looks like the stable tree lacks this commit, which is necessar= y for the >> > commit above. >> > = >> > b2136cc288fc ("btrfs: tests: allocate dummy fs_info and root in te= st_find_delalloc()") >> > = >> = >> This was previously reported during the last stable cycle, and the m= issing >> patch is already queued up. You can see the queue here: >> = >> https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.= git/tree/queue-6.8 > = > Thanks for confirming this, the next 6.8 release should resolve this > issue. > = > greg k-h > = > cherry-picked on top of 6.8.6 $ git log -2 commit 12d79cec1083658f23f4566fcea40463549c5a54 (HEAD -> refs/heads/lin= ux-6.8.6-btrfs-selftest-fix) Author: David Sterba Date: Mon Jan 29 19:04:33 2024 +0100 btrfs: tests: allocate dummy fs_info and root in test_find_delalloc= () = Allocate fs_info and root to have a valid fs_info pointer in case i= t's dereferenced by a helper outside of tests, like find_lock_delalloc_= range(). = Signed-off-by: David Sterba commit 1f7d392571dfec1c47b306a32bbe60be05a51160 (tag: refs/tags/v6.8.6,= refs/remotes/origin/linux-6.8.y, refs/heads/linux-6.8.y) Author: Greg Kroah-Hartman Date: Sat Apr 13 13:10:12 2024 +0200 Linux 6.8.6 = Link: https://lore.kernel.org/r/20240411095420.903937140@linuxfound= ation.org Tested-by: Justin M. Forbes Tested-by: SeongJae Park Tested-by: Ronald Warsow Tested-by: Florian Fainelli Tested-by: Shuah Khan Tested-by: Bagas Sanjaya Tested-by: Ron Economos Tested-by: Jon Hunter Tested-by: Linux Kernel Functional Testing Signed-off-by: Greg Kroah-Hartman $ cat /proc/version = Linux version 6.8.6+ (user@host) (clang version 18.1.3, LLD 18.1.3) #1 = SMP PREEMPT Mon Apr 15 21:31:32 JST 2024 sanity tests are enabled: $ zgrep BTRFS_FS_RUN /proc/config.gz = CONFIG_BTRFS_FS_RUN_SANITY_TESTS=3Dy dmesg, which indicates the success. [ 105.926765] xor: automatically using best checksumming function av= x = [ 105.928174] raid6: skipped pq benchmark and selected avx2x4 [ 105.928175] raid6: using avx2x2 recovery algorithm [ 106.017111] Btrfs loaded, zoned=3Dno, fsverity=3Dno [ 106.017125] BTRFS: selftest: sectorsize: 4096 nodesize: 4096 [ 106.017126] BTRFS: selftest: running btrfs free space cache tests [ 106.017131] BTRFS: selftest: running extent only tests [ 106.017133] BTRFS: selftest: running bitmap only tests [ 106.017136] BTRFS: selftest: running bitmap and extent tests [ 106.017139] BTRFS: selftest: running space stealing from bitmap to e= xtent tests [ 106.017278] BTRFS: selftest: running bytes index tests [ 106.017283] BTRFS: selftest: running extent buffer operation tests [ 106.017283] BTRFS: selftest: running btrfs_split_item tests [ 106.017287] BTRFS: selftest: running extent I/O tests [ 106.017288] BTRFS: selftest: running find delalloc tests [ 106.051988] BTRFS: selftest: running find_first_clear_extent_bit tes= t [ 106.051991] BTRFS: selftest: running extent buffer bitmap tests [ 106.058653] BTRFS: selftest: running extent buffer memory operation = tests [ 106.058664] BTRFS: selftest: running inode tests [ 106.058665] BTRFS: selftest: running btrfs_get_extent tests [ 106.058680] BTRFS: selftest: running hole first btrfs_get_extent tes= t [ 106.058685] BTRFS: selftest: running outstanding_extents tests [ 106.058693] BTRFS: selftest: running qgroup tests [ 106.058694] BTRFS: selftest: running qgroup add/remove tests [ 106.058701] BTRFS: selftest: running qgroup multiple refs test [ 106.058709] BTRFS: selftest: running free space tree tests [ 106.065024] BTRFS: selftest: sectorsize: 4096 nodesize: 8192 [ 106.065025] BTRFS: selftest: running btrfs free space cache tests [ 106.065027] BTRFS: selftest: running extent only tests [ 106.065029] BTRFS: selftest: running bitmap only tests [ 106.065032] BTRFS: selftest: running bitmap and extent tests [ 106.065035] BTRFS: selftest: running space stealing from bitmap to e= xtent tests [ 106.065174] BTRFS: selftest: running bytes index tests [ 106.065179] BTRFS: selftest: running extent buffer operation tests [ 106.065180] BTRFS: selftest: running btrfs_split_item tests [ 106.065183] BTRFS: selftest: running extent I/O tests [ 106.065183] BTRFS: selftest: running find delalloc tests [ 106.099325] BTRFS: selftest: running find_first_clear_extent_bit tes= t [ 106.099327] BTRFS: selftest: running extent buffer bitmap tests [ 106.116359] BTRFS: selftest: running extent buffer memory operation = tests [ 106.116380] BTRFS: selftest: running inode tests [ 106.116381] BTRFS: selftest: running btrfs_get_extent tests [ 106.116395] BTRFS: selftest: running hole first btrfs_get_extent tes= t [ 106.116398] BTRFS: selftest: running outstanding_extents tests [ 106.116405] BTRFS: selftest: running qgroup tests [ 106.116406] BTRFS: selftest: running qgroup add/remove tests [ 106.116413] BTRFS: selftest: running qgroup multiple refs test [ 106.116420] BTRFS: selftest: running free space tree tests [ 106.122685] BTRFS: selftest: sectorsize: 4096 nodesize: 16384 [ 106.122686] BTRFS: selftest: running btrfs free space cache tests [ 106.122688] BTRFS: selftest: running extent only tests [ 106.122690] BTRFS: selftest: running bitmap only tests [ 106.122693] BTRFS: selftest: running bitmap and extent tests [ 106.122697] BTRFS: selftest: running space stealing from bitmap to e= xtent tests [ 106.122837] BTRFS: selftest: running bytes index tests [ 106.122842] BTRFS: selftest: running extent buffer operation tests [ 106.122843] BTRFS: selftest: running btrfs_split_item tests [ 106.122847] BTRFS: selftest: running extent I/O tests [ 106.122847] BTRFS: selftest: running find delalloc tests [ 106.156175] BTRFS: selftest: running find_first_clear_extent_bit tes= t [ 106.156177] BTRFS: selftest: running extent buffer bitmap tests [ 106.190038] BTRFS: selftest: running extent buffer memory operation = tests [ 106.190076] BTRFS: selftest: running inode tests [ 106.190076] BTRFS: selftest: running btrfs_get_extent tests [ 106.190091] BTRFS: selftest: running hole first btrfs_get_extent tes= t [ 106.190095] BTRFS: selftest: running outstanding_extents tests [ 106.190102] BTRFS: selftest: running qgroup tests [ 106.190102] BTRFS: selftest: running qgroup add/remove tests [ 106.190110] BTRFS: selftest: running qgroup multiple refs test [ 106.190117] BTRFS: selftest: running free space tree tests [ 106.196389] BTRFS: selftest: sectorsize: 4096 nodesize: 32768 [ 106.196390] BTRFS: selftest: running btrfs free space cache tests [ 106.196391] BTRFS: selftest: running extent only tests [ 106.196394] BTRFS: selftest: running bitmap only tests [ 106.196397] BTRFS: selftest: running bitmap and extent tests [ 106.196400] BTRFS: selftest: running space stealing from bitmap to e= xtent tests [ 106.196539] BTRFS: selftest: running bytes index tests [ 106.196544] BTRFS: selftest: running extent buffer operation tests [ 106.196544] BTRFS: selftest: running btrfs_split_item tests [ 106.196549] BTRFS: selftest: running extent I/O tests [ 106.196549] BTRFS: selftest: running find delalloc tests [ 106.230530] BTRFS: selftest: running find_first_clear_extent_bit tes= t [ 106.230534] BTRFS: selftest: running extent buffer bitmap tests [ 106.297904] BTRFS: selftest: running extent buffer memory operation = tests [ 106.297981] BTRFS: selftest: running inode tests [ 106.297982] BTRFS: selftest: running btrfs_get_extent tests [ 106.297997] BTRFS: selftest: running hole first btrfs_get_extent tes= t [ 106.298001] BTRFS: selftest: running outstanding_extents tests [ 106.298008] BTRFS: selftest: running qgroup tests [ 106.298009] BTRFS: selftest: running qgroup add/remove tests [ 106.298016] BTRFS: selftest: running qgroup multiple refs test [ 106.298023] BTRFS: selftest: running free space tree tests [ 106.304312] BTRFS: selftest: sectorsize: 4096 nodesize: 65536 [ 106.304313] BTRFS: selftest: running btrfs free space cache tests [ 106.304315] BTRFS: selftest: running extent only tests [ 106.304317] BTRFS: selftest: running bitmap only tests [ 106.304320] BTRFS: selftest: running bitmap and extent tests [ 106.304324] BTRFS: selftest: running space stealing from bitmap to e= xtent tests [ 106.304462] BTRFS: selftest: running bytes index tests [ 106.304468] BTRFS: selftest: running extent buffer operation tests [ 106.304468] BTRFS: selftest: running btrfs_split_item tests [ 106.304473] BTRFS: selftest: running extent I/O tests [ 106.304473] BTRFS: selftest: running find delalloc tests [ 106.338587] BTRFS: selftest: running find_first_clear_extent_bit tes= t [ 106.338589] BTRFS: selftest: running extent buffer bitmap tests [ 106.472975] BTRFS: selftest: running extent buffer memory operation = tests [ 106.473127] BTRFS: selftest: running inode tests [ 106.473127] BTRFS: selftest: running btrfs_get_extent tests [ 106.473143] BTRFS: selftest: running hole first btrfs_get_extent tes= t [ 106.473148] BTRFS: selftest: running outstanding_extents tests [ 106.473155] BTRFS: selftest: running qgroup tests [ 106.473156] BTRFS: selftest: running qgroup add/remove tests [ 106.473164] BTRFS: selftest: running qgroup multiple refs test [ 106.473172] BTRFS: selftest: running free space tree tests [ 106.479514] BTRFS: selftest: running extent_map tests [ 106.479517] BTRFS: selftest: Running btrfs_drop_extent_map_range tes= ts [ 106.479520] BTRFS: selftest: Running btrfs_drop_extent_cache with pi= nned [ 106.479521] BTRFS: selftest: running rmap tests [ 126.436989] modprobe: FATAL: Module ikconfig not found in directory = /lib/modules/6.8.6+ [ 170.100869] udevd[9881]: conflicting device node '/dev/mapper/data-e= ncrypted' found, link to '/dev/dm-0' will not be created [ 170.861020] EXT4-fs (dm-0): mounted filesystem 22071832-a730-492a-a1= 1f-2bc502437c08 r/w with ordered data mode. Quota mode: disabled. [ 176.037983] udevd[9902]: conflicting device node '/dev/mapper/pool-e= ncrypted' found, link to '/dev/dm-1' will not be created [ 177.780518] BTRFS: device label pool devid 1 transid 16145 /dev/mapp= er/pool-encrypted scanned by mount (9904) [ 177.780955] BTRFS info (device dm-1): first mount of filesystem 2548= bfee-1ac9-4894-bd68-47e128d7af9b [ 177.780963] BTRFS info (device dm-1): using crc32c (crc32c-intel) ch= ecksum algorithm [ 177.780965] BTRFS info (device dm-1): disk space caching is enabled [ 177.865416] BTRFS warning (device dm-1): devid 1 physical 0 len 4194= 304 inside the reserved space [ 183.347633] udevd[10073]: conflicting device node '/dev/mapper/backu= p-encrypted' found, link to '/dev/dm-2' will not be created Best regards, -- Hiroshi Takekawa