Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #76173

Bug#1017915: btrfs: space cache corruption and potential double allocations

From Christoph Anton Mitterer <calestyo@scientia.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1017915: btrfs: space cache corruption and potential double allocations
Date 2022-08-22 15:10 +0200
Message-ID <EXflM-2iDp-17@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Source: linux
Version: 5.18.16-1
Severity: important
Tags: upstream patch


Hey.

This is merely a heads up, that a potentially pretty nasty data corruption
issue has been found in btrfs.


As far as I understand:
It was introduced in 5.12, has the highest chances to occur with
free space cache v2, but may also happen with v1 or even nospace_cache.
v2 was made default with btrfs-progs 5.15.

It seems that it may in principle affect data and metadata, so could range from
single file corruptions to complete fs breakage?


The patch, which AFAICS hasn't been submitted to linux-stable yet, can be found
here:
https://lore.kernel.org/linux-btrfs/cover.1660690698.git.osandov@fb.com/
A more in-depth description can be found in it's first commit.


Some others and I myself have asked some further questions about the issue
(how one can detect any corruptions, and so on), which can also be found
in the very same mail thread.


Not sure if the above patch is already production read, but at least it would
be quite helpful if it could be cherry-picked for testing/sid as soon as it has
landed in linux-stable.


Thanks,
Chris.

Back to linux.debian.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Bug#1017915: btrfs: space cache corruption and potential double allocations Christoph Anton Mitterer <calestyo@scientia.org> - 2022-08-22 15:10 +0200
  Bug#1017915: btrfs: space cache corruption and potential double allocations Christoph Anton Mitterer <calestyo@scientia.org> - 2022-09-01 15:50 +0200
  Processed: RE: btrfs: space cache corruption and potential double  allocations "Debian Bug Tracking System" <owner@bugs.debian.org> - 2022-09-01 15:50 +0200
  Bug#1017915: marked as done (btrfs: space cache corruption and  potential double allocations) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2022-09-01 16:50 +0200
  Bug#1017915: btrfs: space cache corruption and potential double allocations Christoph Anton Mitterer <calestyo@scientia.org> - 2022-09-01 21:00 +0200
    Bug#1017915: btrfs: space cache corruption and potential double allocations Salvatore Bonaccorso <carnil@debian.org> - 2022-09-02 09:20 +0200

csiph-web