qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-9.1 v3 0/2] NBD CVE-2024-7409
@ 2024-08-06  2:21 Eric Blake
  2024-08-06  2:21 ` [PATCH v3 1/2] nbd: CVE-2024-7409: Close stray client sockets at server shutdown Eric Blake
  2024-08-06  2:21 ` [PATCH v3 2/2] nbd: Clean up clients more efficiently Eric Blake
  0 siblings, 2 replies; 8+ messages in thread
From: Eric Blake @ 2024-08-06  2:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: kwolf, hreitz, berrange, qemu-block, den, andrey.drobyshev,
	alexander.ivanov, vsementsov

v2 was here:
https://lists.gnu.org/archive/html/qemu-devel/2024-08/msg00253.html

Since then:
 - CVE number assigned
 - drop old patch 1. Instead of tracking nbd_server generation, the
   code now ensures that nbd_server can't be set to NULL until all
   clients have disconnected
 - rewrite to force qio shutdown coupled with AIO_WAIT to ensure all
   clients actually disconnect quickly (from the server's
   perspective. A client may still hold its socket open longer, but
   will eventually see EPIPE or EOF when finally using it)
 - patch 2 is optional, although I like the notion of a doubly-linked
   list (where the client has to remember an opaque pointer) over a
   singly-linked one (where the client is unchanged, but a lot of
   repeated client connect/disconnect over a long-lived server can
   chew up memory and slow down the eventual nbd-server-stop)

Eric Blake (2):
  nbd: CVE-2024-7409: Close stray client sockets at server shutdown
  nbd: Clean up clients more efficiently

 include/block/nbd.h |  4 +++-
 blockdev-nbd.c      | 39 +++++++++++++++++++++++++++++++++++++--
 nbd/server.c        | 15 ++++++++++++---
 qemu-nbd.c          |  2 +-
 4 files changed, 53 insertions(+), 7 deletions(-)

-- 
2.45.2



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

end of thread, other threads:[~2024-08-06 13:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-06  2:21 [PATCH for-9.1 v3 0/2] NBD CVE-2024-7409 Eric Blake
2024-08-06  2:21 ` [PATCH v3 1/2] nbd: CVE-2024-7409: Close stray client sockets at server shutdown Eric Blake
2024-08-06  9:27   ` Daniel P. Berrangé
2024-08-06  2:21 ` [PATCH v3 2/2] nbd: Clean up clients more efficiently Eric Blake
2024-08-06  2:36   ` Eric Blake
2024-08-06  9:32   ` Daniel P. Berrangé
2024-08-06 12:58     ` Eric Blake
2024-08-06 13:56     ` Eric Blake

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 NNTP newsgroup(s).