From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id SFf2Mkawm2WXSgAAkFu2QA (envelope-from ) for ; Mon, 08 Jan 2024 09:20:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id qBmNKUawm2V6fAAAe85BDQ (envelope-from ) for ; Mon, 08 Jan 2024 09:20:22 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=izjGLy9f; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704702022; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+4Uj4ZoeBz4Ax+pxlUxDHQAelUG3mZZ2NFKkCu5dO+g=; b=EeY7GdHXzhfBQtLdT17JzO/zXbMSKA7LFUHVgS1sk85zWki76ltnA08QiNQknGw4T0bDBw DXMp4cRiv/Pqs6h9b9iKVGgdiKHoH+uRfIgVvbvDguVcf80KeadBnZFsDyebeqwg1Bwnpe EuFS5dOEhjS9hG52eyhty9Lsaibr+pc8lvo6om/6bUBarkvD3EJWMtYLNyunsd4AKQELuO h8iYjl4KuMjNJPoJO0tHPLaUNppViIF5CQuXtrmP1IN5yI+shb3u/KgcTJ3moZKVbOjsoo rykbNcYKhyzOy5M5BnjyKP6arz0Ti3bUX0tLqZccDTJiLcL1iTR3f9UYzRqhPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704702022; a=rsa-sha256; cv=none; b=sJz/58fYnle10KD3LcvqcEX7F7HKLodOKb1+UIklfkjxdKpNy9PKw6q5VFS3eOXQ1TzFpN Ug9Ag0Ca97s0iSO9fnP7vthD0CAI8f0ShkurtwFQvQTbhwlJL3U2nRnV0byE9t7ck9JgVZ AzCUL8dsiAE6k88c0auzPSz81HfyyGClCiSWHiIu5wGNGz015KA2dXoyDr7i8sEPBjkyzD ncwE1tSdXJkSrSUP2PYQxxoL63aLW188BFXF6nXA5ukGccJCzSLfdtNo/98ZRkwNEhN/3d dTOqSlJVIy3UclOwoslo3dsJzyScdNYKkFixGeo1Xcw8Os0kSCqkBLm7HDC8YQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=izjGLy9f; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2E4198469 for ; Mon, 8 Jan 2024 09:20:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMkrZ-0002qw-U1; Mon, 08 Jan 2024 03:20:01 -0500 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 1rMkrX-0002qH-VI for guix-patches@gnu.org; Mon, 08 Jan 2024 03:20:00 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rMkrX-00013u-Mk for guix-patches@gnu.org; Mon, 08 Jan 2024 03:19:59 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rMkrZ-0002df-Kl; Mon, 08 Jan 2024 03:20:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#62666] [PATCH v3] gnu: Add aflplusplus. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: GNUtoo@cyberdimension.org, hako@ultrarare.space, guix-patches@gnu.org Resent-Date: Mon, 08 Jan 2024 08:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62666 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62666@debbugs.gnu.org Cc: Hilton Chain , Denis 'GNUtoo' Carikli , Denis 'GNUtoo' Carikli , Hilton Chain X-Debbugs-Original-Xcc: Denis 'GNUtoo' Carikli , Hilton Chain Received: via spool by 62666-submit@debbugs.gnu.org id=B62666.170470197910104 (code B ref 62666); Mon, 08 Jan 2024 08:20:01 +0000 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 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== 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 Content-Transfer-Encoding: 8bit X-Spamd-Bar: + X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 2E4198469 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.31 X-Spam-Score: -6.31 X-TUID: cJP6D6XqcE/S 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