linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] btrfs-progs: check: Detect invalid dev extents and device items
@ 2018-10-08  7:00 Qu Wenruo
  2018-10-08  7:00 ` [PATCH 1/5] btrfs-progs: lowmem check: Add check for overlapping dev extents Qu Wenruo
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Qu Wenruo @ 2018-10-08  7:00 UTC (permalink / raw)
  To: linux-btrfs

This patchset can be fetch from github:
https://github.com/adam900710/btrfs-progs/tree/dev_extents_check

Hans van Kranenburg reported a case where btrfs DUP chunk allocator
could allocate invalid dev extents, either overlaps with existing dev
extents or beyond device boundary.

This patchset enhances the btrfs-progs side to detect such problems.
With hand crafted test image for it.

Qu Wenruo (5):
  btrfs-progs: lowmem check: Add check for overlapping dev extents
  btrfs-progs: original check: Add ability to detect bad dev extents
  btrfs-progs: lowmem check: Add dev_item check for used bytes and total
    bytes
  btrfs-progs: original check: Add dev_item check for used bytes and
    total bytes
  btrfs-progs: fsck-tests: Add test image for dev extents beyond device
    boundary

 check/main.c                                  | 105 ++++++++++++++++++
 check/mode-lowmem.c                           |  37 +++++-
 .../over_dev_boundary.img.xz                  | Bin 0 -> 1640 bytes
 tests/fsck-tests/036-bad-dev-extents/test.sh  |  19 ++++
 4 files changed, 159 insertions(+), 2 deletions(-)
 create mode 100644 tests/fsck-tests/036-bad-dev-extents/over_dev_boundary.img.xz
 create mode 100755 tests/fsck-tests/036-bad-dev-extents/test.sh

-- 
2.19.0


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

end of thread, other threads:[~2018-10-08 10:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-08  7:00 [PATCH 0/5] btrfs-progs: check: Detect invalid dev extents and device items Qu Wenruo
2018-10-08  7:00 ` [PATCH 1/5] btrfs-progs: lowmem check: Add check for overlapping dev extents Qu Wenruo
2018-10-08  9:28   ` Su Yue
2018-10-08 10:13     ` Qu Wenruo
2018-10-08  7:00 ` [PATCH 2/5] btrfs-progs: original check: Add ability to detect bad " Qu Wenruo
2018-10-08  7:00 ` [PATCH 3/5] btrfs-progs: lowmem check: Add dev_item check for used bytes and total bytes Qu Wenruo
2018-10-08  7:00 ` [PATCH 4/5] btrfs-progs: original " Qu Wenruo
2018-10-08  7:00 ` [PATCH 5/5] btrfs-progs: fsck-tests: Add test image for dev extents beyond device boundary Qu Wenruo
2018-10-08  9:25   ` Su Yue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).