btrfs-progs/tests/fuzz-tests/images
David Sterba da64ae3a0f btrfs-progs: reorganize extent_buffer and fix alignment of data
Reported by UBSAN, the checksum code tries to access unaligned data that
come from the extent_buffer.

struct extent_buffer {
        struct cache_extent        cache_node;           /*     0    48 */
        u64                        start;                /*    48     8 */
        u64                        dev_bytenr;           /*    56     8 */
        /* --- cacheline 1 boundary (64 bytes) --- */
        u32                        len;                  /*    64     4 */

        /* XXX 4 bytes hole, try to pack */

        struct extent_io_tree *    tree;                 /*    72     8 */
        struct list_head           lru;                  /*    80    16 */
        struct list_head           recow;                /*    96    16 */
        int                        refs;                 /*   112     4 */
        u32                        flags;                /*   116     4 */
        int                        fd;                   /*   120     4 */
        char                       data[0];              /*   124     0 */

        /* size: 128, cachelines: 2, members: 11 */
        /* sum members: 120, holes: 1, sum holes: 4 */
        /* padding: 4 */
};

Add explicit alignment to data.

Reported-by: Lukas Lueg <lukas.lueg@gmail.com>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=156471
Signed-off-by: David Sterba <dsterba@suse.com>
2016-09-21 11:50:05 +02:00
..
bad-superblock-1.raw.xz
bad-superblock-2.raw.xz
bad-superblock-3.raw.xz
bad-superblock.txt
bko-96971-btrfs-image.raw.xz
bko-96971-btrfs-image.txt
bko-97021-invalid-chunk-sectorsize.raw.txt btrfs-progs: tests: add fuzzed image for invalid chunk sectorsize 2016-09-05 12:20:24 +02:00
bko-97021-invalid-chunk-sectorsize.raw.xz btrfs-progs: tests: add fuzzed image for invalid chunk sectorsize 2016-09-05 12:20:24 +02:00
bko-97031-invalid-stripe-len-sys-array.raw.txt btrfs-progs: tests: add fuzzed image for invalid sys_array and stripe_len 2016-09-05 12:20:24 +02:00
bko-97031-invalid-stripe-len-sys-array.raw.xz btrfs-progs: tests: add fuzzed image for invalid sys_array and stripe_len 2016-09-05 12:20:24 +02:00
bko-97041-invalid-sub-stripes-zero-FPE.raw.txt btrfs-progs: tests: add fuzzed image for invalid sub_stripe value 2016-09-05 12:20:24 +02:00
bko-97041-invalid-sub-stripes-zero-FPE.raw.xz btrfs-progs: tests: add fuzzed image for invalid sub_stripe value 2016-09-05 12:20:24 +02:00
bko-97191-btrfs-image.raw.txt
bko-97191-btrfs-image.raw.xz
bko-97271-btrfs-image.raw.txt
bko-97271-btrfs-image.raw.xz
bko-104131-fsck-oob-read.raw.xz
bko-104131-fsck-oob-read.txt
bko-104141-fsck-exception.raw.xz
bko-104141-fsck-exception.txt
bko-153641-unaligned-tree-block-bytenr.raw.txt btrfs-progs: fuzz-test: Add image for unaligned tree block ptr 2016-09-05 10:04:27 +02:00
bko-153641-unaligned-tree-block-bytenr.raw.xz btrfs-progs: fuzz-test: Add image for unaligned tree block ptr 2016-09-05 10:04:27 +02:00
bko-154021-invalid-drop-level.raw.txt btrfs-progs: fuzz-test: Add test case for invalid drop level 2016-09-05 10:04:36 +02:00
bko-154021-invalid-drop-level.raw.xz btrfs-progs: fuzz-test: Add test case for invalid drop level 2016-09-05 10:04:36 +02:00
bko-154961-heap-overflow-chunk-items.raw.txt btrfs-progs: tests: add fuzzed image for heap overflow while checking chunk items 2016-09-05 12:20:24 +02:00
bko-154961-heap-overflow-chunk-items.raw.xz btrfs-progs: tests: add fuzzed image for heap overflow while checking chunk items 2016-09-05 12:20:24 +02:00
bko-155151-bad-block-group-offset.raw.txt btrfs-progs: tests: add fuzzed images for bad block group offset 2016-09-21 11:49:41 +02:00
bko-155151-bad-block-group-offset.raw.xz btrfs-progs: tests: add fuzzed images for bad block group offset 2016-09-21 11:49:41 +02:00
bko-155181-bad-backref.raw.txt btrfs-progs: tests: add fuzzed image for a bad backref 2016-09-21 11:48:16 +02:00
bko-155181-bad-backref.raw.xz btrfs-progs: tests: add fuzzed image for a bad backref 2016-09-21 11:48:16 +02:00
bko-155181-unaligned-extent-item.raw.txt btrfs-progs: fuzz-test: Add test case for unaligned extent item 2016-09-05 10:05:05 +02:00
bko-155181-unaligned-extent-item.raw.xz btrfs-progs: fuzz-test: Add test case for unaligned extent item 2016-09-05 10:05:05 +02:00
bko-155201-wrong-chunk-item-in-root-tree.raw.txt btrfs-progs: fuzz-test: Add image for wrong chunk item in root tree 2016-09-05 10:04:19 +02:00
bko-155201-wrong-chunk-item-in-root-tree.raw.xz btrfs-progs: fuzz-test: Add image for wrong chunk item in root tree 2016-09-05 10:04:19 +02:00
bko-155621-bad-block-group-offset.raw.txt btrfs-progs: tests: add fuzzed images for bad block group offset 2016-09-21 11:49:41 +02:00
bko-155621-bad-block-group-offset.raw.xz btrfs-progs: tests: add fuzzed images for bad block group offset 2016-09-21 11:49:41 +02:00
bko-156471-ubsan-trigger-crc32c-unaligned.raw.txt btrfs-progs: reorganize extent_buffer and fix alignment of data 2016-09-21 11:50:05 +02:00
bko-156471-ubsan-trigger-crc32c-unaligned.raw.xz btrfs-progs: reorganize extent_buffer and fix alignment of data 2016-09-21 11:50:05 +02:00
superblock-stripsize-bogus.raw.txt
superblock-stripsize-bogus.raw.xz
superblock-total-bytes-0.raw.txt
superblock-total-bytes-0.raw.xz
sys-array-num-stripes-0.raw.txt
sys-array-num-stripes-0.raw.xz
sys-chunk-stripe-len-bogus.raw.txt
sys-chunk-stripe-len-bogus.raw.xz
sys-chunk-type-bogus.raw.txt
sys-chunk-type-bogus.raw.xz