btrfs-progs: fix a heap-overflow bug in raid56 reconstruction
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | btrfs-progs: fix raid56 reconstruction readkernel-shared/ | +13 | 0 replies | |
| 2/2 | btrfs-progs: fsck-tests: add a new test case for the raid56 read fixMakefile tests/ | +28 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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