btrfs-progs: fuzz-test: Add image for wrong chunk item in root tree
[platform/upstream/btrfs-progs.git] / tests / fuzz-tests / images / bko-155201-wrong-chunk-item-in-root-tree.raw.txt
1 URL: https://bugzilla.kernel.org/show_bug.cgi?id=155201
2 Lukas Lueg 2016-08-28 19:15:53 UTC 
3
4 Created attachment 230921 [details]
5 Image causing SIGFPE in btrfsck
6
7 News from the fuzzer. See the attached image to reproduce using btrfs-progs
8 v4.7-42-g56e9586.
9
10
11 [Thread debugging using libthread_db enabled]
12 Using host libthread_db library "/lib64/libthread_db.so.1".
13 checking extents
14 Chunk[0, 4194304] existed.
15 Chunk[18446744073709551607, 228, 0]: length(1), offset(0), type(4160) mismatch
16 with block group[0, 192, 4194304]: offset(4194304), objectid(0), flags(2)
17
18 Program received signal SIGFPE, Arithmetic exception.
19 0x000000000042b178 in calc_stripe_length (type=4160, length=1, num_stripes=0)
20 at cmds-check.c:8018
21 8018                    stripe_size /= num_stripes;
22 #0  0x000000000042b178 in calc_stripe_length (type=4160, length=1,
23 num_stripes=0) at cmds-check.c:8018
24 #1  0x000000000042b56d in check_chunk_refs (silent=0,
25 dev_extent_cache=0x7fffffffdd30, block_group_cache=0x7fffffffdd60,
26 chunk_rec=0x6b92c0) at cmds-check.c:8101
27 #2  check_chunks (chunk_cache=chunk_cache@entry=0x7fffffffdd80,
28 block_group_cache=block_group_cache@entry=0x7fffffffdd60,
29 dev_extent_cache=dev_extent_cache@entry=0x7fffffffdd30, good=good@entry=0x0,
30 bad=bad@entry=0x0, rebuild=rebuild@entry=0x0, silent=0) at cmds-check.c:8165
31 #3  0x000000000042bbdd in check_chunks_and_extents (root=root@entry=0x6b2cf0)
32 at cmds-check.c:8524
33 #4  0x000000000042e3cb in cmd_check (argc=<optimized out>, argv=<optimized
34 out>) at cmds-check.c:11430
35 #5  0x000000000040a416 in main (argc=2, argv=0x7fffffffe218) at btrfs.c:243