From: Anshu Kumari <anskuma@redhat.com>
To: david@gibson.dropbear.id.au, sbrivio@redhat.com, passt-dev@passt.top
Cc: aerosound161@gmail.com, abdobngad@gmail.com, anskuma@redhat.com,
lvivier@redhat.com
Subject: [PATCH 0/5] Add AFL++ fuzzing support for passt
Date: Wed, 12 Aug 2026 12:56:23 +0530 [thread overview]
Message-ID: <20260812072630.3235261-1-anskuma@redhat.com> (raw)
This series adds integrated AFL++ fuzzing support for passt,
extending the earlier work by AbdAlRahman Gad with
persistent mode, bidirectional protocol fuzzing, and real
TCP connection coverage via a companion test server.
Architecture
------------
The fuzzer runs passt in AFL++ persistent mode (__AFL_LOOP)
with shared memory fuzzing. A separate test server process
connects to passt's UNIX socket and listens on 127.0.0.1:9999
for real TCP connections:
Deterministic wrappers replace clock_gettime, getrandom,
getsockopt, and recv-family calls to eliminate kernel-level
non-determinism. Per-iteration reset of the flow table,
epoll instance, and clock.
*** BLURB HERE ***
Anshu Kumari (5):
fuzz: Add deterministic wrappers for system calls
fuzz: Add flow type guards for fuzzing stability
fuzz: Bypass isolation and adapt sockets for AFL++
fuzz: Add AFL++ persistent mode fuzz loop
fuzz: Add test server for bidirectional protocol fuzzing
Makefile | 28 +-
fuzz-server.c | 490 +++++++++++++++++++++++++++++++++
fuzz.c | 275 ++++++++++++++++++
fuzz.h | 62 +++++
fuzzing/README.fuzzing.md | 95 +++++++
fuzzing/testcase_dir/empty.bin | Bin 0 -> 12 bytes
icmp.c | 14 +-
isolation.c | 11 +
passt.c | 189 +++++++++++++
passt.h | 4 +
tap.c | 21 ++
tcp.c | 19 +-
tcp_buf.c | 1 +
tcp_splice.c | 10 +
udp.c | 29 +-
udp_flow.c | 5 +
util.c | 10 +
17 files changed, 1251 insertions(+), 12 deletions(-)
create mode 100644 fuzz-server.c
create mode 100644 fuzz.c
create mode 100644 fuzz.h
create mode 100644 fuzzing/README.fuzzing.md
create mode 100644 fuzzing/testcase_dir/empty.bin
--
2.55.0
next reply other threads:[~2026-08-12 7:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-12 7:26 Anshu Kumari [this message]
2026-08-12 7:26 ` [PATCH 1/5] fuzz: Add deterministic wrappers for system calls Anshu Kumari
2026-08-13 3:46 ` David Gibson
2026-08-12 7:26 ` [PATCH 2/5] fuzz: Add flow type guards for fuzzing stability Anshu Kumari
2026-08-13 4:45 ` David Gibson
2026-08-12 7:26 ` [PATCH 3/5] fuzz: Bypass isolation and adapt sockets for AFL++ Anshu Kumari
2026-08-13 5:04 ` David Gibson
2026-08-12 7:26 ` [PATCH 4/5] fuzz: Add AFL++ persistent mode fuzz loop Anshu Kumari
2026-08-12 7:26 ` [PATCH 5/5] fuzz: Add test server for bidirectional protocol fuzzing Anshu Kumari
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=20260812072630.3235261-1-anskuma@redhat.com \
--to=anskuma@redhat.com \
--cc=abdobngad@gmail.com \
--cc=aerosound161@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=lvivier@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).