All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] 9pfs: add race test suite + fix 9p2000.u dir stream race
@ 2026-10-06 13:03 Christian Schoenebeck
  2026-09-28 10:46 ` [PATCH 6/9] hw/9pfs: fix dirent stream protection for legacy (9p2000.u) Tread Christian Schoenebeck
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Christian Schoenebeck @ 2026-10-06 13:03 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-stable, Greg Kurz

This series adds a race test suite for 9p and fixes a race on legacy
9p2000(.u)'s Tread request on directories, which was uncovered by this
new test suite.

This new race test suite challenges races by sending crafted concurrent 9p
requests on certain aspects of the 9p protocol. This series covers 3 race
tests:

  1. Patch 2 adds "race/fid-path": this race test guards CVE-2026-93834
     (fixed by commit fe9e30899f "hw/9pfs: Use read-write lock for protecting
     fid path.").

     Please refer to the commit log message of this patch for how to run
     these new 9p race tests in general.

  2. Patch 5 adds "race/readdir": this test guards directory stream races
     on 9p2000.L's Treaddir request.

  3. Patch 9 adds "race/tread-dir": this tests legacy 9p2000(.u)'s equivalent
     of Treaddir for directory stream races, and this test got triggered during
     the work on this series.

Therefore:

  - Fix: Patch 6 fixes the directory stream race vulnerability uncovered by
    race test #3.

All the other patches are basically just 9p test client additions required
for these new tests.

Christian Schoenebeck (9):
  tests/9p-client: add Txattrwalk / Rxattrwalk test client functions
  tests/9p-race: add 9p race test suite (race FID-path mutations)
  tests/9p-client: add Rerror function (legacy 9p2000.u)
  tests/9p-client: add Tstat / Rstat test client functions
  tests/9p-race: add Treaddir race test
  hw/9pfs: fix dirent stream protection for legacy (9p2000.u) Tread
  tests/9p-client: add Tcreate / Rcreate test client functions
  tests/9p-client: track the negotiated 9p version for session
  tests/9p-race: add Tread-on-dir race test

 MAINTAINERS                           |    1 +
 hw/9pfs/9p.c                          |   23 +-
 tests/qtest/libqos/virtio-9p-client.c |  213 +++++-
 tests/qtest/libqos/virtio-9p-client.h |  124 +++
 tests/qtest/libqos/virtio-9p.h        |    6 +
 tests/qtest/meson.build               |    1 +
 tests/qtest/virtio-9p-race-test.c     | 1016 +++++++++++++++++++++++++
 7 files changed, 1374 insertions(+), 10 deletions(-)
 create mode 100644 tests/qtest/virtio-9p-race-test.c

-- 
2.47.3



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

end of thread, other threads:[~2026-10-07  9:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06 13:03 [PATCH 0/9] 9pfs: add race test suite + fix 9p2000.u dir stream race Christian Schoenebeck
2026-09-28 10:46 ` [PATCH 6/9] hw/9pfs: fix dirent stream protection for legacy (9p2000.u) Tread Christian Schoenebeck
2026-09-30 12:57 ` [PATCH 1/9] tests/9p-client: add Txattrwalk / Rxattrwalk test client functions Christian Schoenebeck
2026-09-30 18:21 ` [PATCH 2/9] tests/9p-race: add 9p race test suite (race FID-path mutations) Christian Schoenebeck
2026-10-03 17:43 ` [PATCH 3/9] tests/9p-client: add Rerror function (legacy 9p2000.u) Christian Schoenebeck
2026-10-03 17:50 ` [PATCH 4/9] tests/9p-client: add Tstat / Rstat test client functions Christian Schoenebeck
2026-10-03 20:41 ` [PATCH 5/9] tests/9p-race: add Treaddir race test Christian Schoenebeck
2026-10-04 13:17 ` [PATCH 7/9] tests/9p-client: add Tcreate / Rcreate test client functions Christian Schoenebeck
2026-10-05 11:04 ` [PATCH 8/9] tests/9p-client: track the negotiated 9p version for session Christian Schoenebeck
2026-10-05 11:22 ` [PATCH 9/9] tests/9p-race: add Tread-on-dir race test Christian Schoenebeck
2026-10-07  9:47 ` [PATCH 0/9] 9pfs: add race test suite + fix 9p2000.u dir stream race Christian Schoenebeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.