From patchwork Tue Aug 30 07:22:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Wenruo X-Patchwork-Id: 9304943 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 27C3B60756 for ; Tue, 30 Aug 2016 07:22:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CA3B2853B for ; Tue, 30 Aug 2016 07:22:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 007F228A79; Tue, 30 Aug 2016 07:22:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 754B9285AE for ; Tue, 30 Aug 2016 07:22:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753439AbcH3HWa (ORCPT ); Tue, 30 Aug 2016 03:22:30 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:57662 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752187AbcH3HW2 (ORCPT ); Tue, 30 Aug 2016 03:22:28 -0400 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="10418856" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 30 Aug 2016 15:22:23 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id 6B6B34334C92; Tue, 30 Aug 2016 15:22:22 +0800 (CST) Received: from localhost.localdomain (10.167.226.34) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.279.2; Tue, 30 Aug 2016 15:22:21 +0800 From: Qu Wenruo To: CC: Lukas Lueg Subject: [PATCH 5/5] btrfs-progs: fuzz-test: Add test case for unaligned extent item Date: Tue, 30 Aug 2016 15:22:17 +0800 Message-ID: <20160830072217.8599-6-quwenruo@cn.fujitsu.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160830072217.8599-1-quwenruo@cn.fujitsu.com> References: <20160830072217.8599-1-quwenruo@cn.fujitsu.com> MIME-Version: 1.0 X-Originating-IP: [10.167.226.34] X-yoursite-MailScanner-ID: 6B6B34334C92.ADA4B X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: quwenruo@cn.fujitsu.com Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Lukas Lueg Signed-off-by: Lukas Lueg Signed-off-by: Qu Wenruo --- tests/fuzz-tests/images/unaligned-extent-item.raw.txt | 8 ++++++++ tests/fuzz-tests/images/unaligned-extent-item.raw.xz | Bin 0 -> 3684 bytes 2 files changed, 8 insertions(+) create mode 100644 tests/fuzz-tests/images/unaligned-extent-item.raw.txt create mode 100644 tests/fuzz-tests/images/unaligned-extent-item.raw.xz diff --git a/tests/fuzz-tests/images/unaligned-extent-item.raw.xz b/tests/fuzz-tests/images/unaligned-extent-item.raw.xz new file mode 100644 index 0000000000000000000000000000000000000000..c401f2e575467fd33118e3e0dacc2e35636065f2 GIT binary patch literal 3684 zcmeH~X*ApU8pr>!t0fF_acgVr)V`}|)!0&7wKUe+6GenjgK8)yRBIz^2YOfO6Y&2(w4*;N9Y&NltZ40xLh&J_iZO>O-BWCa(ZqZ~@C$$I6&Vk_M zp9r$C*&)9Lm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fysaqRnC(Bx%Wj%%hVEbRia~O}HysE)&re1Mm%JNQvcf){eh!dlcPd&pbfznleq8(wqp)!)j z!GR0$AFj{lCr8eR%sPz~9IH?RqKafzldWm-1(D6Xrtc+;4?RgUF$a>xKZGo{sXpjK z?b)p;(b0zf3PYEY6wd^FxA5z$ePWr%5(=EtBISA2bfxPd%sn{SZud3T{Z1KI@P(*Nnn&r0H-I0RqTy6G;S{vXNEW87+4e-VKc#fWBLgxGR_urIz0)qfYM zaN+^xH)0yVUy0bCrQFXz=nA%M`U>m|*5g-TUwBV^1@=3D;dssi+`yyt^zHNi{w@N` hbsEqIst!E>sOvNihvPFAQ#vH~hcY>SD{>(`{{>VdBPRd= literal 0 HcmV?d00001 diff --git a/tests/fuzz-tests/images/unaligned-extent-item.raw.txt b/tests/fuzz-tests/images/unaligned-extent-item.raw.txt new file mode 100644 index 0000000..7f0b804 --- /dev/null +++ b/tests/fuzz-tests/images/unaligned-extent-item.raw.txt @@ -0,0 +1,8 @@ +URL: https://bugzilla.kernel.org/show_bug.cgi?id=155181 +Lukas Lueg 2016-08-28 10:52:32 UTC + +Created attachment 230891 [details] +BTRFS-image that reaches abort() in btrfsck + +More news from the fuzzer. The attached image causes btrfsck to reach abort() +in in cmds-check.c:add_tree_backref(); using btrfs-progs v4.7-42-g56e9586.