btrfs-progs: fuzz-test: Add test case for unaligned extent item
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 30 Aug 2016 07:22:17 +0000 (15:22 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Sep 2016 08:05:05 +0000 (10:05 +0200)
Reported-by: Lukas Lueg <lukas.lueg@gmail.com>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
[ added bko-NNN- prefix to the files ]
Signed-off-by: David Sterba <dsterba@suse.com>
tests/fuzz-tests/images/bko-155181-unaligned-extent-item.raw.txt [new file with mode: 0644]
tests/fuzz-tests/images/bko-155181-unaligned-extent-item.raw.xz [new file with mode: 0644]

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 (file)
index 0000000..7f0b804
--- /dev/null
@@ -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 (file)
index 0000000..c401f2e
Binary files /dev/null and b/tests/fuzz-tests/images/bko-155181-unaligned-extent-item.raw.xz differ