All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs-progs: fix a heap-overflow bug in raid56 reconstruction
@ 2026-05-22 10:06 Qu Wenruo
  2026-05-22 10:06 ` [PATCH 1/2] btrfs-progs: fix raid56 reconstruction read Qu Wenruo
  2026-05-22 10:06 ` [PATCH 2/2] btrfs-progs: fsck-tests: add a new test case for the raid56 read fix Qu Wenruo
  0 siblings, 2 replies; 3+ messages in thread
From: Qu Wenruo @ 2026-05-22 10:06 UTC (permalink / raw)
  To: linux-btrfs

During my local tests on a kernel patchset of falling back to
RAID1/RAID1C3 for single-data-RAID56, it turns out that "btrfs check
--check-data-csum" can report a lot of false csum mismatch.

It turns out that there is heap-overflow bug where we can get garbage
into the IO buffer for RAID56 reconstruction read.

Fix it and add a regression test case.

Qu Wenruo (2):
  btrfs-progs: fix raid56 reconstruction read
  btrfs-progs: fsck-tests: add a new test case for the raid56 read fix

 Makefile                                 |  2 +-
 kernel-shared/extent_io.c                | 14 +++++++++++-
 tests/fsck-tests/074-raid56-read/test.sh | 27 ++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 2 deletions(-)
 create mode 100755 tests/fsck-tests/074-raid56-read/test.sh

--
2.54.0


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

end of thread, other threads:[~2026-05-22 10:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-22 10:06 [PATCH 0/2] btrfs-progs: fix a heap-overflow bug in raid56 reconstruction Qu Wenruo
2026-05-22 10:06 ` [PATCH 1/2] btrfs-progs: fix raid56 reconstruction read Qu Wenruo
2026-05-22 10:06 ` [PATCH 2/2] btrfs-progs: fsck-tests: add a new test case for the raid56 read fix Qu Wenruo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.