btrfs-progs/tests/fuzz-tests
Qu Wenruo 3fcef50906 btrfs-progs: tests/fuzz: Add fuzzed test image for btrfs check BUG_ON
This fuzzed image will not only cause kernel BUG_ON(), but also btrfs
check BUG_ON() for original mode.

Checking filesystem on /home/adam/btrfs/crafted_images/runtime/0.img
UUID: 3381d111-94a3-4ac7-8f39-611bbbdab7e6
checking extents
check/main.c:3677: check_owner_ref: BUG_ON `rec->is_root` triggered, value 1
btrfs(+0x572c2)[0x562d65da72c2]
btrfs(+0x6098d)[0x562d65db098d]
btrfs(+0x60bb6)[0x562d65db0bb6]
btrfs(+0x6179b)[0x562d65db179b]
btrfs(cmd_check+0x1199)[0x562d65db5589]
btrfs(main+0x88)[0x562d65d62768]
/usr/lib/libc.so.6(__libc_start_main+0xeb)[0x7f4fcbb1b06b]
btrfs(_start+0x2a)[0x562d65d6288a]

Link: https://bugzilla.kernel.org/show_bug.cgi?id=200403
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2018-08-06 15:03:09 +02:00
..
001-simple-check-unmounted btrfs-progs: tests: remove trivial use of local variables 2018-03-30 22:15:55 +02:00
002-simple-image btrfs-progs: tests: remove trivial use of local variables 2018-03-30 22:15:55 +02:00
003-multi-check-unmounted btrfs-progs: tests: add shell quoting to fuzz test scripts 2018-03-30 22:15:55 +02:00
004-simple-dump-tree btrfs-progs: tests: remove trivial use of local variables 2018-03-30 22:15:55 +02:00
005-simple-dump-super btrfs-progs: tests: add shell quoting to fuzz test scripts 2018-03-30 22:15:55 +02:00
006-simple-tree-stats btrfs-progs: tests: remove trivial use of local variables 2018-03-30 22:15:55 +02:00
007-simple-super-recover btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
008-simple-chunk-recover btrfs-progs: tests: add shell quoting to fuzz test scripts 2018-03-30 22:15:55 +02:00
009-simple-zero-log btrfs-progs: tests: add shell quoting to fuzz test scripts 2018-03-30 22:15:55 +02:00
images btrfs-progs: tests/fuzz: Add fuzzed test image for btrfs check BUG_ON 2018-08-06 15:03:09 +02:00