Skip to content

btrfs-progs: fix a heap-overflow bug in raid56 reconstruction

Qu Wenruo linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs-progs: fix raid56 reconstruction readkernel-shared/extent_io.c+13 -10 replies
2/2btrfs-progs: fsck-tests: add a new test case for the raid56 read fixMakefile tests/fsck-tests/074-raid56-read/test.sh+28 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs-progs: fix a heap-overflow bug in raid56 reconstruction

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