public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: "Richard W.M. Jones" <rjones@redhat.com>
To: Stefano Brivio <sbrivio@redhat.com>
Cc: passt-dev@passt.top
Subject: Re: [PATCH passt 0/5] Add fuzzing
Date: Thu, 17 Nov 2022 14:13:07 +0000	[thread overview]
Message-ID: <20221117141307.GD7636@redhat.com> (raw)
In-Reply-To: <20221117145857.6122d941@elisabeth>

On Thu, Nov 17, 2022 at 02:58:57PM +0100, Stefano Brivio wrote:
> On Thu, 17 Nov 2022 12:26:09 +0000
> "Richard W.M. Jones" <rjones@redhat.com> wrote:
> 
> > Unfortunately I don't think the --fd option is working.  stracing the
> > code shows the socket being added to the epoll, but it somehow never
> > gets read.  It might be something obvious but I couldn't see what was
> > wrong.  (NB: The socket passed in is *connected* already).
> 
> I'm looking into this (right now just for something obvious, if
> nothing pops up, a bit later) but actually I wonder: couldn't qemu()
> from 5/5 just call socket(AF_UNIX, SOCK_STREAM, 0) and connect() on it?
> Or am I missing something?

We could create a temporary socket in the filesystem.  --fd avoids the
overhead of having to connect on one side and listen/accept on the
other side, and having something in the filesystem which needs to be
cleaned up.  (Linux has the anonymous namespace which avoids cleanup
but not the rest).

> Then sure, as you mentioned, this could be useful for something else,
> so it's probably worth it to get it working.

Right - we have spent a lot of time adding fd passing to qemu, nbdkit
& libnbd just because it's generally useful.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org


      reply	other threads:[~2022-11-17 14:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-17 12:26 [PATCH passt 0/5] Add fuzzing Richard W.M. Jones
2022-11-17 12:26 ` [PATCH passt 1/5] build: Force-create pasta symlink Richard W.M. Jones
2022-11-17 12:26 ` [PATCH passt 2/5] build: Remove *~ files with make clean Richard W.M. Jones
2022-11-17 12:26 ` [PATCH passt 3/5] Add --fd option Richard W.M. Jones
2022-11-17 15:26   ` [PATCH v2 3/5] passt, tap: " Stefano Brivio
2022-11-17 15:31     ` Stefano Brivio
2022-11-17 15:33       ` Richard W.M. Jones
2022-11-17 15:33     ` Richard W.M. Jones
2022-11-17 15:49       ` Stefano Brivio
2022-11-17 16:02         ` Richard W.M. Jones
2022-11-17 16:18           ` Stefano Brivio
2022-11-17 12:26 ` [PATCH passt 4/5] XXX build: Add extra syscalls needed by AFL instrumentation Richard W.M. Jones
2022-11-17 14:22   ` Stefano Brivio
2022-11-17 12:26 ` [PATCH passt 5/5] Import fuzzing wrapper from libnbd Richard W.M. Jones
2022-11-17 15:35   ` Stefano Brivio
2022-11-17 13:58 ` [PATCH passt 0/5] Add fuzzing Stefano Brivio
2022-11-17 14:13   ` Richard W.M. Jones [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221117141307.GD7636@redhat.com \
    --to=rjones@redhat.com \
    --cc=passt-dev@passt.top \
    --cc=sbrivio@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).