From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTP id 8272B5A0268 for ; Thu, 17 Nov 2022 13:26:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668687983; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hoju6c2VlGxkQJPy6rRT+oYt4uE5CWivFzqA5ejVltE=; b=GkLcqGdwftida9N5tOzOkUWEOL1okrQmzzlbxfLVyXNnODjAxIYTj2MPweC/fFXPFgsthg UVGwvqP1dEVB3YkQUyg2PKgas4alb5Cbru871A6t4wfHxH0D7yZJeMq6iR3UGc807TIURE a/ss2etH5Tq681B7/8Z2WKYHSaRbQfA= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-638-gUM5LjDlOiW91zDVrTBTZQ-1; Thu, 17 Nov 2022 07:26:21 -0500 X-MC-Unique: gUM5LjDlOiW91zDVrTBTZQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 94B4E3C10ECA for ; Thu, 17 Nov 2022 12:26:21 +0000 (UTC) Received: from pick.home.annexia.org (unknown [10.39.193.198]) by smtp.corp.redhat.com (Postfix) with ESMTP id 21481C1E890; Thu, 17 Nov 2022 12:26:21 +0000 (UTC) From: "Richard W.M. Jones" To: sbrivio@redhat.com Subject: [PATCH passt 4/5] XXX build: Add extra syscalls needed by AFL instrumentation Date: Thu, 17 Nov 2022 12:26:13 +0000 Message-Id: <20221117122614.1269214-5-rjones@redhat.com> In-Reply-To: <20221117122614.1269214-1-rjones@redhat.com> References: <20221117122614.1269214-1-rjones@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-MailFrom: rjones@redhat.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: OPDS5IT4QT4JSLBEJX3NA4ISMFDMKHG4 X-Message-ID-Hash: OPDS5IT4QT4JSLBEJX3NA4ISMFDMKHG4 X-Mailman-Approved-At: Thu, 17 Nov 2022 13:28:25 +0100 CC: passt-dev@passt.top X-Mailman-Version: 3.3.3 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This is a hack. Ideally there'd be a way to build a "non-production" build of passt which would turn off all the encapsulation features. They are not relevant for fuzzing and simply add overhead. --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index e370f0a..aa484d2 100644 --- a/Makefile +++ b/Makefile @@ -117,6 +117,19 @@ all: $(BIN) $(MANPAGES) docs static: FLAGS += -static -DGLIBC_NO_STATIC_NSS static: clean all +# XXX Hack for AFL instrumentation +EXTRA_SYSCALLS += \ + clone \ + getpid \ + gettid \ + madvise \ + mmap \ + mprotect \ + prctl \ + rt_sigprocmask \ + sched_yield \ + sigaltstack + seccomp.h: seccomp.sh $(PASST_SRCS) $(PASST_HEADERS) @ EXTRA_SYSCALLS="$(EXTRA_SYSCALLS)" ./seccomp.sh $(PASST_SRCS) $(PASST_HEADERS) -- 2.37.0.rc2