lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240415.214704.2195618259755902678.sian@big.or.jp>
Date: Mon, 15 Apr 2024 21:47:04 +0900 (JST)
From: Hiroshi Takekawa <sian@....or.jp>
To: greg@...ah.com
Cc: holger@...lied-asynchrony.com, Naohiro.Aota@....com,
 regressions@...ts.linux.dev, dsterba@...e.com, wqu@...e.com,
 linux-btrfs@...r.kernel.org, clm@...com, josef@...icpanda.com,
 linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: btrfs: sanity tests fails on 6.8.3

Hi,

Thank you for all your replies.
I cherry-picked b2136cc288fc and the ssanity tests work well.


From: Greg KH <greg@...ah.com>
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ätte wrote:
>> On 2024-04-15 07:24, Naohiro Aota wrote:
>> > On Mon, Apr 15, 2024 at 07:11:15AM +0200, Linux regression tracking (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 recipients]
>> > > 
>> > > On 15.04.24 05:56, Hiroshi Takekawa wrote:
>> > > > 
>> > > > Module loading fails with CONFIG_BTRFS_FS_RUN_SANITY_TESTS enabled 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 ("btrfs: 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 necessary for the
>> > commit above.
>> > 
>> > b2136cc288fc ("btrfs: tests: allocate dummy fs_info and root in test_find_delalloc()")
>> > 
>> 
>> This was previously reported during the last stable cycle, and the missing
>> 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/linux-6.8.6-btrfs-selftest-fix)
Author: David Sterba <dsterba@...e.com>
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 it's
    dereferenced by a helper outside of tests, like find_lock_delalloc_range().
    
    Signed-off-by: David Sterba <dsterba@...e.com>

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 <gregkh@...uxfoundation.org>
Date:   Sat Apr 13 13:10:12 2024 +0200

    Linux 6.8.6
    
    Link: https://lore.kernel.org/r/20240411095420.903937140@linuxfoundation.org
    Tested-by: Justin M. Forbes <jforbes@...oraproject.org>
    Tested-by: SeongJae Park <sj@...nel.org>
    Tested-by: Ronald Warsow <rwarsow@....de>
    Tested-by: Florian Fainelli <florian.fainelli@...adcom.com>
    Tested-by: Shuah Khan <skhan@...uxfoundation.org>
    Tested-by: Bagas Sanjaya <bagasdotme@...il.com>
    Tested-by: Ron Economos <re@...z.net>
    Tested-by: Jon Hunter <jonathanh@...dia.com>
    Tested-by: Linux Kernel Functional Testing <lkft@...aro.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>

$ cat /proc/version 
Linux version 6.8.6+ (user@...t) (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=y

dmesg, which indicates the success.
[  105.926765] xor: automatically using best checksumming function   avx       
[  105.928174] raid6: skipped pq benchmark and selected avx2x4
[  105.928175] raid6: using avx2x2 recovery algorithm
[  106.017111] Btrfs loaded, zoned=no, fsverity=no
[  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 extent 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 test
[  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 test
[  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 extent 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 test
[  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 test
[  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 extent 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 test
[  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 test
[  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 extent 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 test
[  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 test
[  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 extent 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 test
[  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 test
[  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 tests
[  106.479520] BTRFS: selftest: Running btrfs_drop_extent_cache with pinned
[  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-encrypted' found, link to '/dev/dm-0' will not be created
[  170.861020] EXT4-fs (dm-0): mounted filesystem 22071832-a730-492a-a11f-2bc502437c08 r/w with ordered data mode. Quota mode: disabled.
[  176.037983] udevd[9902]: conflicting device node '/dev/mapper/pool-encrypted' found, link to '/dev/dm-1' will not be created
[  177.780518] BTRFS: device label pool devid 1 transid 16145 /dev/mapper/pool-encrypted scanned by mount (9904)
[  177.780955] BTRFS info (device dm-1): first mount of filesystem 2548bfee-1ac9-4894-bd68-47e128d7af9b
[  177.780963] BTRFS info (device dm-1): using crc32c (crc32c-intel) checksum 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 4194304 inside the reserved space
[  183.347633] udevd[10073]: conflicting device node '/dev/mapper/backup-encrypted' found, link to '/dev/dm-2' will not be created

Best regards,

--
Hiroshi Takekawa <sian@....or.jp>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ