Re: [PATCH] btrfs-progs: Fix stack overflow for checking qgroup on tree reloc tree

2016-10-13 Thread David Sterba
On Thu, Oct 06, 2016 at 05:13:32PM +0800, Qu Wenruo wrote: > For tree reloc tree whose level is >= 2, the root node's parent will > point to itself. > In this case it will make btrfsck overflow its stack and cause segfault. > > While for tree reloc tree, it doesn't affect qgroup and kernel can >

[PATCH] btrfs-progs: Fix stack overflow for checking qgroup on tree reloc tree

2016-10-06 Thread Qu Wenruo
For tree reloc tree whose level is >= 2, the root node's parent will point to itself. In this case it will make btrfsck overflow its stack and cause segfault. While for tree reloc tree, it doesn't affect qgroup and kernel can handle it well. So add tree reloc tree check for qgroup-verify.c and