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 AF5BE5A0082 for ; Fri, 18 Nov 2022 11:12:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668766328; 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=EuUmT1B0gyXDGyNCoWNYaP9kJWF5EHxE7ooqnuX/zcg=; b=dVatgcIfqtM2O3Q+dRJwOftV2+lXjq6LRP+qwSjA+Bp14EibXfQS17pZPhaq6Yu79ucttQ ZQXKr2Lf1RZhwccYgR55VFJMIKZawR9099vv2gzCqABdpjmzaO/BuduBy8rm6iyuOzVhL8 Nv/cIr/AV8YaExD+3izUBP47m5mtNXI= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-620-86EMY45TOQuP0lOIQqD3pg-1; Fri, 18 Nov 2022 05:12:07 -0500 X-MC-Unique: 86EMY45TOQuP0lOIQqD3pg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 10217833A0F for ; Fri, 18 Nov 2022 10:12:07 +0000 (UTC) Received: from localhost (unknown [10.39.193.198]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8860D492B04; Fri, 18 Nov 2022 10:12:06 +0000 (UTC) Date: Fri, 18 Nov 2022 10:12:03 +0000 From: "Richard W.M. Jones" To: sbrivio@redhat.com Subject: Re: [PATCH passt v2 0/7] Add fuzzing Message-ID: <20221118101203.GD30956@redhat.com> References: <20221117184938.2270462-1-rjones@redhat.com> MIME-Version: 1.0 In-Reply-To: <20221117184938.2270462-1-rjones@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Message-ID-Hash: QFC5YQTP65BONC45NIDR2EDISMAKUE7K X-Message-ID-Hash: QFC5YQTP65BONC45NIDR2EDISMAKUE7K X-MailFrom: rjones@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header 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: I was wondering if --fd 0 would work, but it doesn't. This hangs: $ ../passt -1 -f -e --fd 0 < testcase_dir/empty_tap It's clear from strace why this is. Trying to add fd 0 to epoll returns -EPERM. The epoll_ctl(2) manual says: EPERM The target file fd does not support epoll. This error can occur if fd refers to, for example, a regular file or a directory. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top