New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UUID is empty in subvolume list #562
Comments
[BUG] Since commit d729048 ("btrfs-progs: stop using btrfs_root_item_v0"), "btrfs subvolume list" not longer correctly report UUID nor timestamp, while older (btrfs-progs v6.0.2) still works correct: v6.0.2: # btrfs subv list -u /mnt/btrfs/ ID 256 gen 12 top level 5 uuid ed4af580-d512-2644-b392-2a71aaeeb99e path subv1 ID 257 gen 13 top level 5 uuid a22ccba7-0a0a-a94f-af4b-5116ab58bb61 path subv2 v6.1: # ./btrfs subv list -u /mnt/btrfs/ ID 256 gen 12 top level 5 uuid - path subv1 ID 257 gen 13 top level 5 uuid - path subv2 [CAUSE] Commit d729048 ("btrfs-progs: stop using btrfs_root_item_v0") removed old btrfs_root_item_v0, but incorrectly changed the check for v0 root item. Now we will treat v0 root items as latest root items, causing possible out-of-bound access. while treat current root items as older v0 root items, ignoring the UUID nor timestamp. [FIX] Fix the bug by using correct checks, and add extra comments on the branches. Issue: kdave#562 Fixes: d729048 ("btrfs-progs: stop using btrfs_root_item_v0") Signed-off-by: Qu Wenruo <wqu@suse.com>
|
Reported also in Fedora: rhbz#2156710 |
|
Sorry to add to this post, but if you use ArchLinux, you can do the following: It's patched, 🎉, click to view old info
pacman -Qi btrfs-progs | grep Version
It's now patched, as of |
They patched it now. You can safely upgrade to 6.1-2 |
…root items [BUG] Since commit d729048 ("btrfs-progs: stop using btrfs_root_item_v0"), "btrfs subvolume list -u" not longer correctly reports UUID nor timestamp, while older (btrfs-progs v6.0.2) still works correctly: v6.0.2: # btrfs subv list -u /mnt/btrfs/ ID 256 gen 12 top level 5 uuid ed4af580-d512-2644-b392-2a71aaeeb99e path subv1 ID 257 gen 13 top level 5 uuid a22ccba7-0a0a-a94f-af4b-5116ab58bb61 path subv2 v6.1: # ./btrfs subv list -u /mnt/btrfs/ ID 256 gen 12 top level 5 uuid - path subv1 ID 257 gen 13 top level 5 uuid - path subv2 [CAUSE] Commit d729048 ("btrfs-progs: stop using btrfs_root_item_v0") removed old btrfs_root_item_v0, but incorrectly changed the check for v0 root item. Now we will treat v0 root items as latest root items, causing possible out-of-bound access, while treating current root items as older v0 root items, ignoring the UUID nor timestamp. [FIX] Fix the bug by using correct checks, and add extra comments on the branches. Issue: #562 Fixes: d729048 ("btrfs-progs: stop using btrfs_root_item_v0") Reviewed-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Neal Gompa <neal@gompa.dev> Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
|
Fix pushed to devel. This bug as a high impact so there will be a hotfix release in a few days. |
|
v6.1.1 released. |
UUID is empty in subvolume list after d729048. Test on linux 6.0.12 (ArchLinux).
The text was updated successfully, but these errors were encountered: