From 8607100a9b5c99736fa1fce3e0c6c624c189f4ec Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Tue, 30 Aug 2016 15:22:17 +0800 Subject: [PATCH] btrfs-progs: fuzz-test: Add test case for unaligned extent item Reported-by: Lukas Lueg Signed-off-by: Qu Wenruo [ added bko-NNN- prefix to the files ] Signed-off-by: David Sterba --- .../images/bko-155181-unaligned-extent-item.raw.txt | 8 ++++++++ .../images/bko-155181-unaligned-extent-item.raw.xz | Bin 0 -> 3684 bytes 2 files changed, 8 insertions(+) create mode 100644 tests/fuzz-tests/images/bko-155181-unaligned-extent-item.raw.txt create mode 100644 tests/fuzz-tests/images/bko-155181-unaligned-extent-item.raw.xz diff --git a/tests/fuzz-tests/images/bko-155181-unaligned-extent-item.raw.txt b/tests/fuzz-tests/images/bko-155181-unaligned-extent-item.raw.txt new file mode 100644 index 0000000..7f0b804 --- /dev/null +++ b/tests/fuzz-tests/images/bko-155181-unaligned-extent-item.raw.txt @@ -0,0 +1,8 @@ +URL: https://bugzilla.kernel.org/show_bug.cgi?id=155181 +Lukas Lueg 2016-08-28 10:52:32 UTC + +Created attachment 230891 [details] +BTRFS-image that reaches abort() in btrfsck + +More news from the fuzzer. The attached image causes btrfsck to reach abort() +in in cmds-check.c:add_tree_backref(); using btrfs-progs v4.7-42-g56e9586. diff --git a/tests/fuzz-tests/images/bko-155181-unaligned-extent-item.raw.xz b/tests/fuzz-tests/images/bko-155181-unaligned-extent-item.raw.xz new file mode 100644 index 0000000000000000000000000000000000000000..c401f2e575467fd33118e3e0dacc2e35636065f2 GIT binary patch literal 3684 zcmeH~X*ApU8pr>!t0fF_acgVr)V`}|)!0&7wKUe+6GenjgK8)yRBIz^2YOfO6Y&2(w4*;N9Y&NltZ40xLh&J_iZO>O-BWCa(ZqZ~@C$$I6&Vk_M zp9r$C*&)9LmK1RuX%4HDhg6seITpP@?8b>1*(J>ou_n6wYl*2 zyzmLu;9cb$qBPTnOcE-)l&J>Gaeg7sbHm<9u~|q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