public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH STABLE 5.15 0/2] btrfs: raid56: backports to reduce corruption
@ 2022-08-19  8:39 Qu Wenruo
  2022-08-19  8:39 ` [PATCH STABLE 5.15 1/2] btrfs: only write the sectors in the vertical stripe which has data stripes Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Qu Wenruo @ 2022-08-19  8:39 UTC (permalink / raw)
  To: linux-btrfs, stable

This is the backport for v5.15.x stable branch.

The full explananation can be found here:
https://lore.kernel.org/linux-btrfs/Yv85PTBsDhrQITZp@kroah.com/T/#t

Difference between v5.15.x and v5.18.x backports:

- btrfs_io_contrl::fs_info and btrfs_raid_bio::fs_info refactor
  In v5.15 and older kernel, btrfs_raid_bio and btrfs_io_control both
  have fs_info member, and the new rbio_add_bio() function utilizes
  btrfs_io_ctrl::fs_info.

  Unfortunately that rbio->bioc->fs_info is not always initialized in
  v5.15 and older kernels.
  Thus has to use rbio->fs_info instead.

  If not properly handled, can lead to btrfs/158 crash.

Qu Wenruo (2):
  btrfs: only write the sectors in the vertical stripe which has data
    stripes
  btrfs: raid56: don't trust any cached sector in
    __raid56_parity_recover()

 fs/btrfs/raid56.c | 74 ++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 57 insertions(+), 17 deletions(-)

-- 
2.37.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-19 11:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-19  8:39 [PATCH STABLE 5.15 0/2] btrfs: raid56: backports to reduce corruption Qu Wenruo
2022-08-19  8:39 ` [PATCH STABLE 5.15 1/2] btrfs: only write the sectors in the vertical stripe which has data stripes Qu Wenruo
2022-08-19  8:39 ` [PATCH STABLE 5.15 2/2] btrfs: raid56: don't trust any cached sector in __raid56_parity_recover() Qu Wenruo
2022-08-19 11:21 ` [PATCH STABLE 5.15 0/2] btrfs: raid56: backports to reduce corruption Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox