public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/5] Fix assorted errors in the Qemu socket tap receive handler
@ 2024-07-26  7:20 David Gibson
  2024-07-26  7:20 ` [PATCH 1/5] tap: Better report errors receiving from QEMU socket David Gibson
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: David Gibson @ 2024-07-26  7:20 UTC (permalink / raw)
  To: passt-dev, Stefano Brivio; +Cc: David Gibson

A long time ago Matej Hrica pointed out a possible buffer overrun when
receiving data from the qemu socket.  Stefano recently proposed a fix
for this, but I don't think it's quite right.  This series is a
different approach to fixing that problem and a few adjacent ones.

David Gibson (5):
  tap: Better report errors receiving from QEMU socket
  tap: Don't attempt to carry on if we get a bad frame length from qemu
  tap: Don't use EPOLLET on Qemu sockets
  tap: Correctly handle frames of odd length
  tap: Improve handling of partially received frames on qemu socket

 passt.h |  1 -
 tap.c   | 72 ++++++++++++++++++++++++++++++---------------------------
 util.h  | 16 +++++++++++++
 3 files changed, 54 insertions(+), 35 deletions(-)

-- 
2.45.2


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

end of thread, other threads:[~2024-07-29  1:16 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-26  7:20 [PATCH 0/5] Fix assorted errors in the Qemu socket tap receive handler David Gibson
2024-07-26  7:20 ` [PATCH 1/5] tap: Better report errors receiving from QEMU socket David Gibson
2024-07-26 11:25   ` Stefano Brivio
2024-07-26 11:50     ` Stefano Brivio
2024-07-26 12:02     ` David Gibson
2024-07-26  7:20 ` [PATCH 2/5] tap: Don't attempt to carry on if we get a bad frame length from qemu David Gibson
2024-07-26 11:26   ` Stefano Brivio
2024-07-26  7:20 ` [PATCH 3/5] tap: Don't use EPOLLET on Qemu sockets David Gibson
2024-07-26  8:00   ` Stefano Brivio
2024-07-26 10:44     ` Stefano Brivio
2024-07-26 12:12     ` David Gibson
2024-07-26 13:25       ` Stefano Brivio
2024-07-29  1:15         ` David Gibson
2024-07-26  7:20 ` [PATCH 4/5] tap: Correctly handle frames of odd length David Gibson
2024-07-26  7:20 ` [PATCH 5/5] tap: Improve handling of partially received frames on qemu socket David Gibson
2024-07-26 11:39   ` Stefano Brivio
2024-07-26 12:33     ` David Gibson
2024-07-26 13:19 ` [PATCH 0/5] Fix assorted errors in the Qemu socket tap receive handler Stefano Brivio

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