Skip to content

btrfs-progs: Variant fixes for fuzz-tests

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6btrfs-progs: Exit gracefully if we hit ENOSPC when allocating tree blockextent-tree.c+4 -11 reply
2/6btrfs-progs: Exit gracefully when failed to repair root dir itemcheck/main.c+4 -11 reply
3/6btrfs-progs: Don't report dirty leaked eb using BUG_ONextent_io.c+5 -12 replies
4/6btrfs-progs: Fix infinite loop when failed to repair bad key ordercheck/main.c+5 -00 replies
5/6btrfs-progs: Exit gracefull when we failed to alloc dev extentvolumes.c+2 -11 reply
6/6btrfs-progs: rescue-super: Don't double free fs_devicessuper-recover.c+0 -32 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchNikolay Borisov
1/6R-b
2/6R-b
3/6
4/6
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] btrfs-progs: Variant fixes for fuzz-tests

This can be fetched from github:
https://github.com/adam900710/btrfs-progs/tree/fixes_for_fuzz_test

The base HEAD is:
commit d7a1b84756157d544a9ddc399ef48c6132eaafcf (david/devel)

Author: Qu Wenruo <[email protected]>
Date:   Thu Jul 5 15:37:31 2018 +0800

btrfs-progs: check/original: Don't overwrite return value when we failed to repair

Thanks for the already merged fixes for fuzz/003, the remaining part is pretty small now, +20/-7.

Mostly of the fixes are for fuzz/003, just a small bunch of BUG_ON() removal. (Patch 1~3 and 5)

There is also a fix for fuzz/003 dead loop. (Patch 4)

Finally we have a fix for fuzz/007, the bug is a segfault triggered by accessing poisoned list_head, caused by double list freeing. (Patch 6)

Now fuzz-test should finally work without problem.

Qu Wenruo (6):
btrfs-progs: Exit gracefully if we hit ENOSPC when allocating tree
block
btrfs-progs: Exit gracefully when failed to repair root dir item
btrfs-progs: Don't report dirty leaked eb using BUG_ON
btrfs-progs: Fix infinite loop when failed to repair bad key order
btrfs-progs: Exit gracefull when we failed to alloc dev extent
btrfs-progs: rescue-super: Don't double free fs_devices

 check/main.c    | 10 +++++++++-
 extent-tree.c   |  5 ++++-
 extent_io.c     |  6 +++++-
 super-recover.c |  3 ---
 volumes.c       |  3 ++-
 5 files changed, 20 insertions(+), 7 deletions(-)
Signature · 1 line
2.18.0