From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 71439158099 for ; Thu, 23 Nov 2023 13:31:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA6622BC027; Thu, 23 Nov 2023 13:31:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9E7B02BC027 for ; Thu, 23 Nov 2023 13:31:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B6115335D31 for ; Thu, 23 Nov 2023 13:31:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0EEB9AB9 for ; Thu, 23 Nov 2023 13:31:26 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1700746279.124f3e448e7a0c4680fbff2306a3e2c9354bde77.sam@gentoo> Subject: [gentoo-commits] proj/pax-utils:master commit in: / X-VCS-Repository: proj/pax-utils X-VCS-Files: meson.build security.c X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 124f3e448e7a0c4680fbff2306a3e2c9354bde77 X-VCS-Branch: master Date: Thu, 23 Nov 2023 13:31:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a873860b-7fb3-405a-856e-3154edd7f7c7 X-Archives-Hash: 6c2aca5fc6a6068b86f3424478533f1d commit: 124f3e448e7a0c4680fbff2306a3e2c9354bde77 Author: Aliaksei Urbanski gmail com> AuthorDate: Wed Nov 8 01:58:52 2023 +0000 Commit: Sam James gentoo org> CommitDate: Thu Nov 23 13:31:19 2023 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=124f3e44 Fix fuzz-dumpelf test Not sure why, but the dumpelf.fuzz fuzzer fails when it's calling prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, ...) at security_init. So I suggest disabling seccomp for fuzzy testing. Also, in order to not run indefinitely, the fuzzer must be executed with some reasonable options. https://releases.llvm.org/14.0.0/docs/LibFuzzer.html#options Signed-off-by: Aliaksei Urbanski gmail.com> Closes: https://github.com/gentoo/pax-utils/pull/13 Signed-off-by: Sam James gentoo.org> meson.build | 8 +++++++- security.c | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 0cb9a0e..255107b 100644 --- a/meson.build +++ b/meson.build @@ -166,6 +166,12 @@ if do_tests and get_option('use_fuzzing') link_args : fuzz_flags, install : false ) - test('fuzz-dumpelf', dumpelf_fuzzer) + test('fuzz-dumpelf', dumpelf_fuzzer, + args : [ + '-close_fd_mask=3', + '-max_total_time=10', + '-print_final_stats', + ] + ) endif endif diff --git a/security.c b/security.c index 19bf78f..7122a7f 100644 --- a/security.c +++ b/security.c @@ -46,6 +46,10 @@ # undef WANT_SECCOMP #endif +#if PAX_UTILS_LIBFUZZ +# undef WANT_SECCOMP +#endif + static int ns_unshare(int flags) { int flag, ret = 0;