public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/5] Add AFL++ fuzzing support for passt
@ 2026-08-12  7:26 Anshu Kumari
  2026-08-12  7:26 ` [PATCH 1/5] fuzz: Add deterministic wrappers for system calls Anshu Kumari
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Anshu Kumari @ 2026-08-12  7:26 UTC (permalink / raw)
  To: david, sbrivio, passt-dev; +Cc: aerosound161, abdobngad, anskuma, lvivier

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-08-13  5:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-12  7:26 [PATCH 0/5] Add AFL++ fuzzing support for passt Anshu Kumari
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

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).