btrfs-progs: test: Add image for quota verify stack overflow
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Fri, 7 Oct 2016 07:23:00 +0000 (15:23 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Oct 2016 13:03:12 +0000 (15:03 +0200)
commit112514568fbe266943d7dd5ed3d2a6a8ab01a1de
treeb1b801ec48896a267432deff3f120f69bcfa2354
parent9119319ef99ffd742349f4b91aa8caab02d38fc9
btrfs-progs: test: Add image for quota verify stack overflow

For image with tree reloc tree, if its height is over level 2, the root
node's backref will point to itself.  It's valid for kernel, but quota
verify code can't handle it and cause a infinite call, overflowing the
stack.

Add minimal image to reproduce the bug, as regression test.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
[ minor cleanups in test.sh ]
Signed-off-by: David Sterba <dsterba@suse.com>
tests/fsck-tests/023-qgroup-stack-overflow/quota_balance_loop_backref.raw.xz [new file with mode: 0644]
tests/fsck-tests/023-qgroup-stack-overflow/test.sh [new file with mode: 0755]