From 112514568fbe266943d7dd5ed3d2a6a8ab01a1de Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Fri, 7 Oct 2016 15:23:00 +0800 Subject: [PATCH] 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 [ minor cleanups in test.sh ] Signed-off-by: David Sterba --- .../quota_balance_loop_backref.raw.xz | Bin 0 -> 55708 bytes .../023-qgroup-stack-overflow/test.sh | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/fsck-tests/023-qgroup-stack-overflow/quota_balance_loop_backref.raw.xz create mode 100755 tests/fsck-tests/023-qgroup-stack-overflow/test.sh diff --git a/tests/fsck-tests/023-qgroup-stack-overflow/quota_balance_loop_backref.raw.xz b/tests/fsck-tests/023-qgroup-stack-overflow/quota_balance_loop_backref.raw.xz new file mode 100644 index 0000000000000000000000000000000000000000..a0759739a624c5856253ce2eb6232a3dbe52dc2c GIT binary patch literal 55708 zcmeF1QBst1PeMu_y{(;q1jjQkO)!%HM z>Y4xmAg8O%qCfzIfH(jE00?vH)4#uVAZ0oL0CwNMzeR1oV!Yz0jvNLG?THkpMWNvD zH^+E^OLQZg+<;OIz7vs=GIT|-8-Arn(Zq;K`x+P{E|G_BZ>`CGFqZwh&JxDjMacWf z&nY*cFs?)c7rOL{y8whBsYiJe^}D-Zz5D?RBFHQ^e_yjpA>0-Ro6#Y(HZ}ZEOVLQOGDj*xHhQv1H?CbZj#JsnNiAn%V%gX5%V_(ow?Xza z+fIK@mPqC)!LxJG9rYx66o+Nb{yyKKfrJV!*!5+pNBa7*7*aKE?pU9-&8GTHK!#)J zLB$DbSKnz^QlGukPXlxz*csa817>*mMMXn50MVmNCM?>zr;#no?>Zr>HZe)&%81K) zo2Txz4_@}LJeSxWvbAk`SfLaK??2{!%r7vY@MP4EEctz9R-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kqjKNvU5YnE*`6fo!#nUrVy1doVu6kV~g_y#&^~0gdsq2bK zc;eh*=O}?$r^d*Sl};1`iyV5pS$u*?Age0B+sGj6wbGG>;ixC7xUY8TfJ+rO1itl$ zZ~ft0f7yrY!n`aQrx8QJpkVTycMS>yg@M8*&w-cIx%k{sQ=c*Y9!3aFX@n5WkCSnJ z925)+Cf~`p!w4DGN9)jRrNwe1f*i@dPWA!JYL|tG+EN8Yw2dygc6kMliuJOX^4^JW zbUVa*`lM$pc7zN=<_sehu|)Ny#BNq|HMNQF(WxulN~rMJaG|^Oad_t|B%-fx={64kxEj0Gv5E^Z(Wlg2EtYg~3I+v}ZzBPPfx zl5j6sQk8GK0PZC}VCaC7KuMq^P!cE!lmtqCEcOIS0wsZxKuMq^P!cHll~OV~)Dorq v?+nB=93fX3HSu!~+uOwI804XlfoqD<6F&rnTEm_fsE#F>E57{$n&SBntSD2< literal 0 HcmV?d00001 diff --git a/tests/fsck-tests/023-qgroup-stack-overflow/test.sh b/tests/fsck-tests/023-qgroup-stack-overflow/test.sh new file mode 100755 index 00000000..e8bf3fae --- /dev/null +++ b/tests/fsck-tests/023-qgroup-stack-overflow/test.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# +# Check whether btrfs check quota verify will cause stack overflow. +# This is caused by lack of handling of tree reloc tree. +# Fixed by patch: +# btrfs-progs: Fix stack overflow for checking qgroup on tree reloc tree + +source $TOP/tests/common + +check_prereq btrfs + +check_image() +{ + run_check $TOP/btrfs check "$1" +} + +check_all_images "."