From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 04 13:45:07 2023 Received: (at submit) by debbugs.gnu.org; 4 Apr 2023 17:45:07 +0000 Received: from localhost ([127.0.0.1]:50091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjkiR-0008Mj-Cl for submit@debbugs.gnu.org; Tue, 04 Apr 2023 13:45:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:39092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjkiP-0008Mc-KO for submit@debbugs.gnu.org; Tue, 04 Apr 2023 13:45:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjkiP-0003Vk-Ar for guix-patches@gnu.org; Tue, 04 Apr 2023 13:45:05 -0400 Received: from cyberdimension.org ([2001:910:1314:ffff::1] helo=gnutoo.cyberdimension.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1pjkiM-0003IB-HC for guix-patches@gnu.org; Tue, 04 Apr 2023 13:45:05 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 91b835a2; Tue, 4 Apr 2023 17:44:55 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id d4987759; Tue, 4 Apr 2023 17:44:55 +0000 (UTC) From: Denis 'GNUtoo' Carikli To: guix-patches@gnu.org Subject: [PATCH 0/2] Add aflplusplus Date: Tue, 4 Apr 2023 19:44:49 +0200 Message-Id: <20230404174449.5297-1-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:910:1314:ffff::1; envelope-from=GNUtoo@cyberdimension.org; helo=gnutoo.cyberdimension.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Denis 'GNUtoo' Carikli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi, Here's two patches to add aflplusplus. I've also patches (not part of this serie) to add support for faster compilers with GCC plugins, but when I do that it somehow fails to run: $ cat main.c int main() { printf("Hello world\n"); } $ afl-gcc-fast ./main.c afl-cc++4.05c by Michal Zalewski, Laszlo Szekeres, Marc Heuse - mode: GCC_PLUGIN-DEFAULT cc1: error: cannot load plugin /gnu/store/sx55p7b4r21kiw7sagi8cb8ff6zmvmqd-aflplusplus-4.05c/bin/../lib/afl//afl-gcc-pass.so: /gnu/store/sx55p7b4r21kiw7sagi8cb8ff6zmvmqd-aflplusplus-4.05c/bin/../lib/afl//afl-gcc-pass.so: undefined symbol: _Z30gimple_build_call_internal_vec11internal_fn3vecIP9tree_node7va_heap6vl_ptrE So I limited that serie to what works well. Denis 'GNUtoo' Carikli (2): gnu: Add aflplusplus. gnu: aflplusplus: Add python support gnu/packages/debug.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) base-commit: b9c9c23939a40a850a8c78579adaec25d1972bd1 -- 2.39.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 04 21:29:36 2023 Received: (at 62666) by debbugs.gnu.org; 5 Apr 2023 01:29:36 +0000 Received: from localhost ([127.0.0.1]:50521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjrxv-0007hn-Vq for submit@debbugs.gnu.org; Tue, 04 Apr 2023 21:29:36 -0400 Received: from cyberdimension.org ([80.67.179.20]:56304 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjrxu-0007hZ-2n for 62666@debbugs.gnu.org; Tue, 04 Apr 2023 21:29:34 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 7252c067; Wed, 5 Apr 2023 01:29:32 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 78fca1a6; Wed, 5 Apr 2023 01:29:32 +0000 (UTC) From: Denis 'GNUtoo' Carikli To: 62666@debbugs.gnu.org Subject: [PATCH 1/2] gnu: Add aflplusplus. Date: Wed, 5 Apr 2023 03:29:13 +0200 Message-Id: <20230405012914.16778-1-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 62666 Cc: Denis 'GNUtoo' Carikli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/debug.scm (aflplusplus): New variable. --- gnu/packages/debug.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index 154232ed50..88b8cb8b8b 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm @@ -460,6 +460,37 @@ (define-public qemu-for-american-fuzzy-lop ;; Several tests fail on MIPS. (supported-systems (delete "mips64el-linux" %supported-systems)))))) +(define-public aflplusplus + (package + (inherit american-fuzzy-lop) + (name "aflplusplus") + (version "4.05c") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/AFLplusplus/AFLplusplus") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0cl0bgvd2yy331zchjz5drcnadam6w0vfmwcq1jf285hw0x8b0bk")))) + (inputs (list qemu)) + (home-page "https://aflplus.plus") + (description + "AFLplusplus is a security-oriented fuzzer that employs a novel type of +compile-time instrumentation and genetic algorithms to automatically discover +clean, interesting test cases that trigger new internal states in the targeted +binary. This substantially improves the functional coverage for the fuzzed +code. The compact synthesized corpora produced by the tool are also useful +for seeding other, more labor- or resource-intensive testing regimes down the +road. It is a fork of American Fuzzy Lop fuzzer and compared to it: +@itemize +@item It Supports a more recent qemu version +@item It supports more algorithms like collision-free coverage, enhanced +laf-intel & redqueen, AFLfast++ power schedules, MOpt mutators, unicorn_mode, +etc. +@end itemize"))) + (define-public stress-make (let ((commit "97815bed8060de33952475b3498767c91f59ffd9") (revision "2")) ;No official source distribution -- 2.39.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 04 21:29:37 2023 Received: (at 62666) by debbugs.gnu.org; 5 Apr 2023 01:29:37 +0000 Received: from localhost ([127.0.0.1]:50523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjrxx-0007hv-AW for submit@debbugs.gnu.org; Tue, 04 Apr 2023 21:29:37 -0400 Received: from cyberdimension.org ([80.67.179.20]:56304 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjrxv-0007hZ-07 for 62666@debbugs.gnu.org; Tue, 04 Apr 2023 21:29:35 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 59d316a3; Wed, 5 Apr 2023 01:29:32 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id c55ad037; Wed, 5 Apr 2023 01:29:32 +0000 (UTC) From: Denis 'GNUtoo' Carikli To: 62666@debbugs.gnu.org Subject: [PATCH 2/2] gnu: aflplusplus: Add python support Date: Wed, 5 Apr 2023 03:29:14 +0200 Message-Id: <20230405012914.16778-2-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230405012914.16778-1-GNUtoo@cyberdimension.org> References: <20230405012914.16778-1-GNUtoo@cyberdimension.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 62666 Cc: Denis 'GNUtoo' Carikli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/debug.scm (aflplusplus): [inputs]: Add python. --- gnu/packages/debug.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index 88b8cb8b8b..21df553ef6 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm @@ -474,7 +474,7 @@ (define-public aflplusplus (sha256 (base32 "0cl0bgvd2yy331zchjz5drcnadam6w0vfmwcq1jf285hw0x8b0bk")))) - (inputs (list qemu)) + (inputs (list python qemu)) (home-page "https://aflplus.plus") (description "AFLplusplus is a security-oriented fuzzer that employs a novel type of -- 2.39.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 22 22:35:47 2023 Received: (at 62666) by debbugs.gnu.org; 23 Aug 2023 02:35:48 +0000 Received: from localhost ([127.0.0.1]:60740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYdil-00035g-Ig for submit@debbugs.gnu.org; Tue, 22 Aug 2023 22:35:47 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:43728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYdih-00035W-I7 for 62666@debbugs.gnu.org; Tue, 22 Aug 2023 22:35:46 -0400 Date: Wed, 23 Aug 2023 10:34:48 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1692758107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ub4eWMEG0dhPwuiGV2GsmlbtP2JMQTFCM2tJYz0Pzn8=; b=zCFK+cW6qPTszJ/vJ7F4LE6zRPFBqu8UrkEkQZk6dXA/gIZL/u6YeA8zET+NkkXUGuf4F8 rjPG7bKEyV9kKBuhO6efMJwQAMcKvKxwPs1gVLlHvlTuXsArXe8U/P+XVA1zxwYg9pkqiq 9WrUomBzdFBcRhtnlmb0GgnvMLvxioCKv/0tycWbHCgusf6gzjfulDQbU19xAKCV7xU3n1 6J56HMDlZPDg0K7zfSc80mm4dsPo46I3wyHWoo1uIblqKv6zkSbHDcaO/7rorqVfjkMhRk nFpV83JufVXOPXNk8aubD6OI8itp9LoXQThLjMZ/dYCUMeCK9e1I4MFXMH4UeA== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space Message-ID: <87a5ui4hbr.wl-hako@ultrarare.space> From: Hilton Chain To: Denis 'GNUtoo' Carikli Subject: Re: [bug#62666] [PATCH 0/2] Add aflplusplus In-Reply-To: <20230404174449.5297-1-GNUtoo@cyberdimension.org> References: <20230404174449.5297-1-GNUtoo@cyberdimension.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: / X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62666 Cc: 62666@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Denis, On Wed, 05 Apr 2023 01:44:49 +0800, Denis 'GNUtoo' Carikli wrote: > > Hi, > > Here's two patches to add aflplusplus. I've also patches (not part of this > serie) to add support for faster compilers with GCC plugins, but when I do > that it somehow fails to run: > $ cat main.c > int main() > { > printf("Hello world\n"); > } > $ afl-gcc-fast ./main.c > afl-cc++4.05c by Michal Zalewski, Laszlo Szekeres, Marc Heuse - mode: GCC_PLUGIN-DEFAULT > cc1: error: cannot load plugin /gnu/store/sx55p7b4r21kiw7sagi8cb8ff6zmvmqd-aflplusplus-4.05c/bin/../lib/afl//afl-gcc-pass.so: /gnu/store/sx55p7b4r21kiw7sagi8cb8ff6zmvmqd-aflplusplus-4.05c/bin/../lib/afl//afl-gcc-pass.so: undefined symbol: _Z30gimple_build_call_internal_vec11internal_fn3vecIP9tree_node7va_heap6vl_ptrE > > So I limited that serie to what works well. > > > Denis 'GNUtoo' Carikli (2): > gnu: Add aflplusplus. > gnu: aflplusplus: Add python support > > gnu/packages/debug.scm | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > > > base-commit: b9c9c23939a40a850a8c78579adaec25d1972bd1 > -- > 2.39.1 I think (for the plugin) this is related: --8<---------------cut here---------------start------------->8--- [+] All set and ready to build. g++ -O3 -g -funroll-loops -D_FORTIFY_SOURCE=1 -Wall -std=c++11 -fPIC -fno-rtti -I"/gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/plugin"/include -I"/gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/plugin" -shared instrumentation/afl-gcc-pass.so.cc -o afl-gcc-pass.so In file included from /gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/plugin/include/gcc-plugin.h:28, from instrumentation/afl-gcc-common.h:46, from instrumentation/afl-gcc-pass.so.cc:127: /gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/plugin/include/system.h:698:10: fatal error: gmp.h: No such file or directory 698 | #include | ^~~~~~~ compilation terminated. make[1]: *** [GNUmakefile.gcc_plugin:149: afl-gcc-pass.so] Error 1 make[1]: Leaving directory '/tmp/guix-build-aflplusplus-4.05c.drv-0/source' make: [GNUmakefile:790: install] Error 2 (ignored) --8<---------------cut here---------------end--------------->8--- Can you address the issue and send an updated patch? Thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 14 23:27:40 2023 Received: (at 62666) by debbugs.gnu.org; 15 Sep 2023 03:27:40 +0000 Received: from localhost ([127.0.0.1]:41613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgzUW-0005jJ-58 for submit@debbugs.gnu.org; Thu, 14 Sep 2023 23:27:40 -0400 Received: from cyberdimension.org ([2001:910:1314:ffff::1]:35064 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgzUQ-0005j2-55 for 62666@debbugs.gnu.org; Thu, 14 Sep 2023 23:27:34 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 60954986; Fri, 15 Sep 2023 03:27:20 +0000 (UTC) Received: from primary_laptop (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 5598af78; Fri, 15 Sep 2023 03:27:20 +0000 (UTC) Date: Fri, 15 Sep 2023 05:25:40 +0200 From: Denis 'GNUtoo' Carikli To: Hilton Chain Subject: Re: [bug#62666] [PATCH 0/2] Add aflplusplus Message-ID: <20230915052540.7a3029ba@primary_laptop> In-Reply-To: <87a5ui4hbr.wl-hako@ultrarare.space> References: <20230404174449.5297-1-GNUtoo@cyberdimension.org> <87a5ui4hbr.wl-hako@ultrarare.space> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/8DmIEQad5Njdwf2fwcJAmtN"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 62666 Cc: 62666@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Sig_/8DmIEQad5Njdwf2fwcJAmtN Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 23 Aug 2023 10:34:48 +0800 Hilton Chain wrote: > > Here's two patches to add aflplusplus. I've also patches (not part > > of this serie) to add support for faster compilers with GCC > > plugins, but when I do that it somehow fails to run: > I think (for the plugin) this is related: > --8<---------------cut here---------------start------------->8--- > [+] All set and ready to build. > g++ -O3 -g -funroll-loops -D_FORTIFY_SOURCE=3D1 -Wall -std=3Dc++11 -fPIC > -fno-rtti > -I"/gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86= _64-unknown-linux-gnu/11.3.0/plugin"/include > -I"/gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86= _64-unknown-linux-gnu/11.3.0/plugin" > -shared instrumentation/afl-gcc-pass.so.cc -o afl-gcc-pass.so In file > included from > /gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86_64= -unknown-linux-gnu/11.3.0/plugin/include/gcc-plugin.h:28, > from instrumentation/afl-gcc-common.h:46, from > instrumentation/afl-gcc-pass.so.cc:127: > /gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86_64= -unknown-linux-gnu/11.3.0/plugin/include/system.h:698:10: > fatal error: gmp.h: No such file or directory 698 | #include > | ^~~~~~~ compilation terminated. make[1]: *** > [GNUmakefile.gcc_plugin:149: afl-gcc-pass.so] Error 1 make[1]: > Leaving directory '/tmp/guix-build-aflplusplus-4.05c.drv-0/source' > make: [GNUmakefile:790: install] Error 2 (ignored) > --8<---------------cut here---------------end--------------->8--- >=20 > Can you address the issue and send an updated patch? The issue turned out to be that it called "gcc" instead of the gcc available during the build. Qemu is one of the aflplusplus dependencies and it doesn't cross compile: > $ guix build --target=3Daarch64-linux-gnu qemu=20 > guix build: error: gnu/packages/gnome.scm:3501:2: librsvg@2.54.5: > build system `cargo' does not support cross builds So for simplicity I've simply made aflplusplus use the gcc that is in the inputs. I've verified that it took the right gcc by adding '(invoke "gcc" "--version")' to the package and verifying that it was really gcc-11. I've also updated aflplusplus to the latest version along the way. Denis. --Sig_/8DmIEQad5Njdwf2fwcJAmtN Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmUDzrQACgkQX138wUF3 4mP5zg/9HaiFIXw8FNvVOdOSyrCb7EMHMkcahGse4DhsrN8jSk9bQmt+YRZG67hV BOC3LxEt8vruliRbJgPWRdZZjrpPhCVAJSMexi9RCbkiY2rexVMDfR8+PEcMAn8a IKTO+znwEb1UjxSaMoroNQxpumK2J/IU+Zv/uoNZit+uYRhZYX/tV4W4ykfvYGCi LfvaFMFV90yxHSacnC+UB6Lt++n5oZctEltpuTMHmKtk5VSMevHT0tOM3Z+gdJ4T 331w0rIS2VM0HrPx8Wm0QX5JUVk6BY3UkpcXS6nsahxLpokLLxpyMf5vyi9cu59q DRnGJC/7QSR/vJWwWWoWIasrug5lq5rG2DXBphzSLGcTWLNnsW/78mkG+YYECoba 7siHj5qOKHA3FU9aPYw6KzqNncm4RU00CfduX6L62vmATLPcUEkvUeL7x70jSs5d /LlcLX3Sv79lCfetd9D4gaMk+BixcGrLNCXi/j8k00CEQDKDYK4KyhaBonfBCFH/ DGEJWmuqIE16qbIk0+oLCL453uHR8s+MucJg8tPq6h3HqrAqyhSikYY0jNbJOQ5d RsbuTSc3uQnBV6iibR8tXOBiM/D6nvesNCKGR9IANPVWFCM3nnyui5Zj9i0N8esP IprA6Dbqn8SOgCZ3Bplzp36Cqovpillph5u5NI8b5iKR+LPzleE= =CAhj -----END PGP SIGNATURE----- --Sig_/8DmIEQad5Njdwf2fwcJAmtN-- From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 14 23:28:07 2023 Received: (at 62666) by debbugs.gnu.org; 15 Sep 2023 03:28:07 +0000 Received: from localhost ([127.0.0.1]:41618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgzV1-0005kX-Ej for submit@debbugs.gnu.org; Thu, 14 Sep 2023 23:28:07 -0400 Received: from cyberdimension.org ([2001:910:1314:ffff::1]:34182 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgzUz-0005kP-Ir for 62666@debbugs.gnu.org; Thu, 14 Sep 2023 23:28:06 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 1a0bd4e1; Fri, 15 Sep 2023 03:27:58 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id d8ff3cef; Fri, 15 Sep 2023 03:27:58 +0000 (UTC) From: Denis 'GNUtoo' Carikli To: 62666@debbugs.gnu.org Subject: [PATCH v2 1/3] gnu: Add aflplusplus. Date: Fri, 15 Sep 2023 05:27:52 +0200 Message-ID: <08dda007d354a5857a348d8d001c06216c940893.1694747779.git.GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-Debbugs-Cc: ( , Christopher Baines , Ludovic Courtès , Mathieu Othacehe , Raghav Gururajan , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice , jgart Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 62666 Cc: Denis 'GNUtoo' Carikli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/debug.scm (aflplusplus): New variable. --- ChangeLog: - Updated to 4.08c --- gnu/packages/debug.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index e2a29a3ae9..cd1eccbd7b 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm @@ -459,6 +459,37 @@ (define-public qemu-for-american-fuzzy-lop ;; Several tests fail on MIPS. (supported-systems (delete "mips64el-linux" %supported-systems)))))) +(define-public aflplusplus + (package + (inherit american-fuzzy-lop) + (name "aflplusplus") + (version "4.08c") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/AFLplusplus/AFLplusplus") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "01hxj65if6rkjrj1fqcgq0jl95dirhkn00mi2k65mff6bckaamxg")))) + (inputs (list qemu)) + (home-page "https://aflplus.plus") + (description + "AFLplusplus is a security-oriented fuzzer that employs a novel type of +compile-time instrumentation and genetic algorithms to automatically discover +clean, interesting test cases that trigger new internal states in the targeted +binary. This substantially improves the functional coverage for the fuzzed +code. The compact synthesized corpora produced by the tool are also useful +for seeding other, more labor- or resource-intensive testing regimes down the +road. It is a fork of American Fuzzy Lop fuzzer and compared to it: +@itemize +@item It Supports a more recent qemu version +@item It supports more algorithms like collision-free coverage, enhanced +laf-intel & redqueen, AFLfast++ power schedules, MOpt mutators, unicorn_mode, +etc. +@end itemize"))) + (define-public stress-make (let ((commit "97815bed8060de33952475b3498767c91f59ffd9") (revision "2")) ;No official source distribution -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 14 23:28:11 2023 Received: (at 62666) by debbugs.gnu.org; 15 Sep 2023 03:28:11 +0000 Received: from localhost ([127.0.0.1]:41621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgzV4-0005ks-UA for submit@debbugs.gnu.org; Thu, 14 Sep 2023 23:28:11 -0400 Received: from cyberdimension.org ([2001:910:1314:ffff::1]:34182 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgzV1-0005kP-31 for 62666@debbugs.gnu.org; Thu, 14 Sep 2023 23:28:07 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id b16224de; Fri, 15 Sep 2023 03:27:59 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 991cf737; Fri, 15 Sep 2023 03:27:59 +0000 (UTC) From: Denis 'GNUtoo' Carikli To: 62666@debbugs.gnu.org Subject: [PATCH v2 2/3] gnu: aflplusplus: Add python support Date: Fri, 15 Sep 2023 05:27:53 +0200 Message-ID: <6382108e29da93b59e39e7df48351444397cb843.1694747779.git.GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-Debbugs-Cc: ( , Christopher Baines , Ludovic Courtès , Mathieu Othacehe , Raghav Gururajan , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice , jgart Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 62666 Cc: Denis 'GNUtoo' Carikli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/debug.scm (aflplusplus): [inputs]: Add python. --- ChangeLog: no changes --- gnu/packages/debug.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index cd1eccbd7b..04458d0220 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm @@ -473,7 +473,7 @@ (define-public aflplusplus (sha256 (base32 "01hxj65if6rkjrj1fqcgq0jl95dirhkn00mi2k65mff6bckaamxg")))) - (inputs (list qemu)) + (inputs (list python qemu)) (home-page "https://aflplus.plus") (description "AFLplusplus is a security-oriented fuzzer that employs a novel type of -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 14 23:28:11 2023 Received: (at 62666) by debbugs.gnu.org; 15 Sep 2023 03:28:11 +0000 Received: from localhost ([127.0.0.1]:41623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgzV5-0005ku-6y for submit@debbugs.gnu.org; Thu, 14 Sep 2023 23:28:11 -0400 Received: from cyberdimension.org ([2001:910:1314:ffff::1]:34182 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgzV1-0005kP-PN for 62666@debbugs.gnu.org; Thu, 14 Sep 2023 23:28:08 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id eb8b960a; Fri, 15 Sep 2023 03:28:00 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id e3e07053; Fri, 15 Sep 2023 03:27:59 +0000 (UTC) From: Denis 'GNUtoo' Carikli To: 62666@debbugs.gnu.org Subject: [PATCH v2 3/3] gnu: aflplusplus: Build afl-gcc/g++-fast Date: Fri, 15 Sep 2023 05:27:54 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-Debbugs-Cc: ( , Christopher Baines , Ludovic Courtès , Mathieu Othacehe , Raghav Gururajan , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice , jgart Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 62666 Cc: Denis 'GNUtoo' Carikli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/debug.scm (aflplusplus): [inputs]: Add gcc, gmp. --- ChangeLog: New patch --- gnu/packages/debug.scm | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index 04458d0220..c9fdca8c8b 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm @@ -50,6 +50,7 @@ (define-module (gnu packages debug) #:use-module (gnu packages code) #:use-module (gnu packages compression) #:use-module (gnu packages flex) + #:use-module (gnu packages gcc) #:use-module (gnu packages gdb) #:use-module (gnu packages glib) #:use-module (gnu packages gtk) @@ -59,6 +60,7 @@ (define-module (gnu packages debug) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) + #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) #:use-module (gnu packages ninja) #:use-module (gnu packages perl) @@ -473,7 +475,35 @@ (define-public aflplusplus (sha256 (base32 "01hxj65if6rkjrj1fqcgq0jl95dirhkn00mi2k65mff6bckaamxg")))) - (inputs (list python qemu)) + (arguments + (substitute-keyword-arguments (package-arguments american-fuzzy-lop) + ((#:phases phases) + `(modify-phases ,phases + ;; TODO: Enable to cross compile aflplusplus by also enabling qemu + ;; to be cross compiled and by fixing the use-build-gcc phase below. + (add-before 'build 'use-build-gcc + (lambda _ + ;; We need to patch it to select the build-time gcc else we get + ;; something like that: + ;; $ afl-gcc-fast main.c + ;; afl-cc++4.08c by [...] - mode: GCC_PLUGIN-DEFAULT + ;; cc1: error: cannot load plugin + ;; /gnu/[...]-aflplusplus-4.08c/bin/../lib/afl//afl-gcc-pass.so: + ;; /gnu/[...]-aflplusplus-4.08c/bin/../lib/afl//afl-gcc-pass.so: + ;; undefined symbol: + ;; _Z30gimple_build_call_internal_vec11internal_fn3vecIP9tree_node7va_heap6vl_ptrE + (substitute* "src/afl-cc.c" + (("alt_cc = \"gcc\";") + (string-append "alt_cc = \"" + (which "gcc") "\";")) + (("alt_cxx = \"g\\+\\+\";") + (string-append "alt_cxx = \"" + (which "g++") "\";"))))))))) + ;; afl-gcc and g++-fast require gcc and gmp. The gcc-11 input is used + ;; instead of gcc because in the Dockerfile inside aflplusplus source code + ;; has the following comment: "GCC 12 is producing compile errors for some + ;; targets so we stay at GCC 11". + (inputs (list gcc-11 gmp python qemu)) (home-page "https://aflplus.plus") (description "AFLplusplus is a security-oriented fuzzer that employs a novel type of -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 23 12:00:15 2023 Received: (at 62666) by debbugs.gnu.org; 23 Nov 2023 17:00:15 +0000 Received: from localhost ([127.0.0.1]:35014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6D3m-0006PC-Pn for submit@debbugs.gnu.org; Thu, 23 Nov 2023 12:00:15 -0500 Received: from cyberdimension.org ([80.67.179.20]:51582 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6D3j-0006Bp-Mi for 62666@debbugs.gnu.org; Thu, 23 Nov 2023 12:00:13 -0500 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 90f20db3 for <62666@debbugs.gnu.org>; Thu, 23 Nov 2023 17:00:05 +0000 (UTC) Received: from primary_laptop (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 779e2031 for <62666@debbugs.gnu.org>; Thu, 23 Nov 2023 17:00:05 +0000 (UTC) Date: Thu, 23 Nov 2023 17:56:43 +0100 From: Denis 'GNUtoo' Carikli To: 62666@debbugs.gnu.org Message-ID: <20231123175643.283ca7ce@primary_laptop> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/3yKg7wjwGi27Lg36ffadUaP"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: ping Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 T_SCC_BODY_TEXT_LINE No description available. 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: 62666 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) --Sig_/3yKg7wjwGi27Lg36ffadUaP Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable ping --Sig_/3yKg7wjwGi27Lg36ffadUaP Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmVfhEsACgkQX138wUF3 4mPGig//YbF/NWU1NQZSxEVW2BrTGh6+mdPAbcz55zxzate0uzDUr30F3t4Ckiht 1eMHMnLhwG+3esvdO4sOkyZEB5t1CRpMy/US4/J3D+l6zcoYMVDWPmssMSRCOzQW pINRhLhCL0H/0CF6oR9wtW2BWsbflklWeZD8EaWi3jCdzjdawu8jDITGFEwaRcEQ YHw5q4jhsM1yZ/ULDmIpkYM72pC1wk2MtOirj/G2vhce9j3NYcR4T7vwcYxmeLdr PtzLN6fJ0qMVSLxyh8qWHNyQKEe4fWQX4QZ13csbNKTzmLPXcCDpfBgOc/Y7J6sc PLDcGMF+MrInlC4xWU+Y100sxKcgQcpJUvs52tQ2fJFTuCYpS8qVB0LEo0yS3Db3 F+U5eeKw5Av9IaGKlGv5AZQSwTxqp2294HNu2i3qcLvE6yJTToC2rmLWVAlL8xiJ Rg5/9ff/ArODbWIr5VppR0vAzXvTomAMnR9qfaEIfctBNMp0+H0poORT4bkuWane 8ATG1xU8DS6uEkVkPMuTkOuJdgo+mNbMHyBj5RRLBhRSeRBgkpfpWGLyUI6u+aqs FYJWnaQl/ysG1iriMfs4iWt7mOzbti0FIL31d5NYH8QIvbqgSBYnKZiwGVaI5E5w YTtWyLYGqHhBQGz28oFI9IAPixVYWa5TcPPnFZ9SiHkHIzTsQVY= =cuCZ -----END PGP SIGNATURE----- --Sig_/3yKg7wjwGi27Lg36ffadUaP-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 08 03:19:39 2024 Received: (at 62666) by debbugs.gnu.org; 8 Jan 2024 08:19:39 +0000 Received: from localhost ([127.0.0.1]:35089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMkrC-0002ct-W3 for submit@debbugs.gnu.org; Mon, 08 Jan 2024 03:19:39 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:34194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMkrA-0002ch-0b for 62666@debbugs.gnu.org; Mon, 08 Jan 2024 03:19:38 -0500 From: Hilton Chain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1704701963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+4Uj4ZoeBz4Ax+pxlUxDHQAelUG3mZZ2NFKkCu5dO+g=; b=izjGLy9fKIvHbbZbAv+fOh9f+m9LTlo1wDeRbYTSHwvYSX7Hq1VzbP0ajH5nlkbPQFwQMj gNCffgZjWUMvbXgHY3jDjEjT0a++hsxFSYFKrXTriX7+bf8lKJwkFhN5j+SgJQkeZBCBFL 5i+s6+yaUAD4zI66DGpFsC7OHDcpIP1P2p9KfnzgzeQuyM6TTOVE5AjEHo3x5f3X5SszR7 +nygyzvA5UqkmfEdmQOXek88cJozSITZjXf1E38e0oLZHktonqFiwbAqtjgwC5MLp6p7bA /eCeSWwzXTYoJ7r6BkAkaBJQJY2gQ0ceoJoGntqkdOcdVZp+jUx6PwySTGY8KA== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space To: 62666@debbugs.gnu.org Subject: [PATCH v3] gnu: Add aflplusplus. Date: Mon, 8 Jan 2024 16:19:00 +0800 Message-ID: In-Reply-To: <20230404174449.5297-1-GNUtoo@cyberdimension.org> References: <20230404174449.5297-1-GNUtoo@cyberdimension.org> MIME-Version: 1.0 X-Debbugs-Cc: Denis 'GNUtoo' Carikli , Hilton Chain Content-Transfer-Encoding: 8bit X-Spamd-Bar: + X-Spam-Level: * X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 62666 Cc: Hilton Chain , Denis 'GNUtoo' Carikli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) From: Denis 'GNUtoo' Carikli * gnu/packages/debug.scm (aflplusplus): New variable. Change-Id: Ibda36187e839d5f533d461444db25a7ba5567f0f Modified-by: Hilton Chain --- Hi Denis, Aplogies for the long delay... I have adjusted the phases for proper cross-compilation support and updated the package to the latest version. I'm sending out v3 mainly for QA purpose, I'll push it if there's no further issue. Thanks gnu/packages/debug.scm | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index 5a528c7a28..6d4567acc4 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm @@ -50,6 +50,7 @@ (define-module (gnu packages debug) #:use-module (gnu packages code) #:use-module (gnu packages compression) #:use-module (gnu packages flex) + #:use-module (gnu packages gcc) #:use-module (gnu packages gdb) #:use-module (gnu packages glib) #:use-module (gnu packages gtk) @@ -59,6 +60,7 @@ (define-module (gnu packages debug) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) + #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) #:use-module (gnu packages ninja) #:use-module (gnu packages perl) @@ -459,6 +461,59 @@ (define-public qemu-for-american-fuzzy-lop ;; Several tests fail on MIPS. (supported-systems (delete "mips64el-linux" %supported-systems)))))) +(define-public aflplusplus + (package + (inherit american-fuzzy-lop) + (name "aflplusplus") + (version "4.09c") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/AFLplusplus/AFLplusplus") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "12bplpd8cifla6m9l130fd22ggzkhd1w5s1aifw1idpy3njhj129")))) + (arguments + (substitute-keyword-arguments (package-arguments american-fuzzy-lop) + ((#:make-flags _ ''()) + #~(list (string-append "PREFIX=" #$output) + (string-append "DOC_PATH=" #$output "/share/doc/" + #$(package-name this-package) "-" + #$(package-version this-package)) + (string-append "CC=" #$(cc-for-target)))) + ((#:phases phases '%standard-phases) + #~(modify-phases #$phases + ;; For GCC plugins. + (add-after 'unpack 'patch-gcc-path + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/afl-cc.c" + (("alt_cc = \"gcc\";") + (format #f "alt_cc = \"~a\";" + (search-input-file inputs "bin/gcc"))) + (("alt_cxx = \"g\\+\\+\";") + (format #f "alt_cxx = \"~a\";" + (search-input-file inputs "bin/g++")))))))))) + ;; According to the Dockerfile, GCC 12 is producing compile errors for some + ;; targets, so explicitly use GCC 11 here. + (inputs (list gcc-11 gmp python qemu)) + (native-inputs (list gcc-11)) + (home-page "https://aflplus.plus/") + (description + "AFLplusplus is a security-oriented fuzzer that employs a novel type of +compile-time instrumentation and genetic algorithms to automatically discover +clean, interesting test cases that trigger new internal states in the targeted +binary. This substantially improves the functional coverage for the fuzzed +code. The compact synthesized corpora produced by the tool are also useful for +seeding other, more labor- or resource-intensive testing regimes down the road. +It is a fork of American Fuzzy Lop fuzzer and features: +@itemize +@item A more recent qemu version. +@item More algorithms like collision-free coverage, enhanced laf-intel & +redqueen, AFLfast++ power schedules, MOpt mutators, unicorn_mode, etc. +@end itemize"))) + (define-public stress-make (let ((commit "97815bed8060de33952475b3498767c91f59ffd9") (revision "2")) ;No official source distribution base-commit: 3de361d9c9d320aefbd43710124d7b07af891de1 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 23 19:09:56 2024 Received: (at 62666) by debbugs.gnu.org; 24 Jan 2024 00:09:56 +0000 Received: from localhost ([127.0.0.1]:44157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSQq4-0007tx-3a for submit@debbugs.gnu.org; Tue, 23 Jan 2024 19:09:56 -0500 Received: from cyberdimension.org ([80.67.179.20]:42504 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSQq1-0007tp-Ib for 62666@debbugs.gnu.org; Tue, 23 Jan 2024 19:09:54 -0500 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 0d826eeb; Wed, 24 Jan 2024 00:09:47 +0000 (UTC) Received: from primary_laptop (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 7a5fc6da; Wed, 24 Jan 2024 00:09:47 +0000 (UTC) Date: Wed, 24 Jan 2024 01:09:45 +0100 From: Denis 'GNUtoo' Carikli To: Hilton Chain Subject: Re: [bug#62666] [PATCH v3] gnu: Add aflplusplus. Message-ID: <20240124010945.21b016bf@primary_laptop> In-Reply-To: References: <20230404174449.5297-1-GNUtoo@cyberdimension.org> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/3/SxGvNAw9zzpbQD3o7Oli_"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 62666 Cc: 62666@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Sig_/3/SxGvNAw9zzpbQD3o7Oli_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 8 Jan 2024 16:19:00 +0800 Hilton Chain wrote: > Hi Denis, Hi, > Aplogies for the long delay... >=20 > I have adjusted the phases for proper cross-compilation support and > updated the package to the latest version. >=20 > I'm sending out v3 mainly for QA purpose, I'll push it if there's no > further issue. >=20 > Thanks Thanks a lot for improving this patch. I've a question though: in the mumi instance (https://issues.guix.gnu.org/62666) it still says QA Unknown. Do I need to do something on my side? Denis. --Sig_/3/SxGvNAw9zzpbQD3o7Oli_ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmWwVUkACgkQX138wUF3 4mNRCxAAkhIHLJQ1HFG/1RuKyzchkRWr2Plh0aOjfw0tijWOrlSQcGLxVrNjMAQm VOULEcMZsPqzq9EQZnVvKeIpR33cmB20MUEP8k6ErPjSOvBEZmGIbB7kYMbRPsUL 2LKWIySjzJIMADTAD3HaJH4apijeotLW4jqW+C48GVTemXYppiD1IjdOJn2/8ciF MwFWk7Z9ciyGFwuIPVJRdUg6+yYUqIvG12aZlrnRi7NUr7fpJP4Q6WLCgIn118FV S+wXZn5TWdNmZbCIqBR3x2bA+w7YLRzkFCTH022Qlzu/oJMp6P6sl8+XqN8gSDgH YqqP9tUYWctGC08CKTkQ3rZX0nJOjLZjp1f+j+a32AkISyP2r0pgSiMB6z4lJ8f1 98AzriClLGMZekuqX6PM9oYLA8BdwtfNjfJrlPaO8WkpsaepvOqI3V7E4Z17e8IJ pF/PBDjolGDxhFnJwthRHZgATGhAdjAqUvgjKMxxwq6a3kuDsxqE4Qtem8awjtCN h56pRzsUluqbLRmoV7tFrQDkr1cRh2rD0xQtQe5O5M+KYgp5qrEnf4IbIy98PXpL DkCjqKQhGWGox81ku0guVsA3YwDcvJ2rlWHaiigqp9D+bwg+rPy7nOzh72MGCXbi vgyK3hg+HXW/8pgub9WUNBPL9Sk2IPCYUYM7nw/HOvtaC62DgkQ= =bPWO -----END PGP SIGNATURE----- --Sig_/3/SxGvNAw9zzpbQD3o7Oli_-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 25 11:35:30 2024 Received: (at 62666-done) by debbugs.gnu.org; 25 Jan 2024 16:35:30 +0000 Received: from localhost ([127.0.0.1]:49039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT2hO-0002N1-B1 for submit@debbugs.gnu.org; Thu, 25 Jan 2024 11:35:30 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:60156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT2hL-0002Ms-RU for 62666-done@debbugs.gnu.org; Thu, 25 Jan 2024 11:35:29 -0500 Date: Fri, 26 Jan 2024 00:35:10 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1706200484; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qGepvBsQG2IYKkQTSChO4y4ZfHqoJoPQavy4dBTBA+U=; b=dzwqu7dUAOUoCa28Vx4FohaAQAqpLbHt/bAwHCSSUGiTj5qmwVePtykRgYPdnQIaLyWztG nsahJmB4zo/Zzu8vlkoF0IkmWkV61hERQ+wC1CXk2hDtW1+tSh6gGoYn/uwHXg7mnDxGuO /DbVHnV49SSIrObJGVVeFW8ixPCYZ3WuyChRLJfc76b0BZpQyOz+G8pYHRluwigrXgzAqv WP50KljPg3BYiCeQ7vs0Onx41ofnzr+jtgZCZoe/rkKr6mOjlEEZvr0c6Mym2qikTFqa7j yp/Dox+KtRVgpAZUySHQrSf7cqmOgxB3VsXVrfc6yi7bssp4fu0b7r/1yjNXPw== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space Message-ID: <87zfwt1idd.wl-hako@ultrarare.space> From: Hilton Chain To: Denis 'GNUtoo' Carikli Subject: Re: [bug#62666] [PATCH v3] gnu: Add aflplusplus. In-Reply-To: <20240124010945.21b016bf@primary_laptop> References: <20230404174449.5297-1-GNUtoo@cyberdimension.org> <20240124010945.21b016bf@primary_laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: / X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 62666-done Cc: 62666-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Denis, On Wed, 24 Jan 2024 08:09:45 +0800, Denis 'GNUtoo' Carikli wrote: > > [1 ] > On Mon, 8 Jan 2024 16:19:00 +0800 > Hilton Chain wrote: > > Hi Denis, > Hi, > > > Aplogies for the long delay... > > > > I have adjusted the phases for proper cross-compilation support and > > updated the package to the latest version. > > > > I'm sending out v3 mainly for QA purpose, I'll push it if there's no > > further issue. > > > > Thanks > > Thanks a lot for improving this patch. > > I've a question though: in the mumi instance > (https://issues.guix.gnu.org/62666) it still says QA Unknown. > > Do I need to do something on my side? Applied as 06221e910a5718c7d4ad2dcc7ffad2bc8e92fdc5 ! From unknown Sun Jun 22 04:36:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 23 Feb 2024 12:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator