public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/2] Fix a Coverity reported socket leak
@ 2026-05-13  7:18 David Gibson
  2026-05-13  7:18 ` [PATCH 1/2] tcp, tcp_splice: Make helper for setting SO_LINGER socket option David Gibson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Gibson @ 2026-05-13  7:18 UTC (permalink / raw)
  To: passt-dev, Stefano Brivio; +Cc: David Gibson

I got coverity working for me again, version 2026.3.0.  This pointed
out a potentially fairly nasty socket leak in tcp_listen_handler().
Here's a series that fixes it.

David Gibson (2):
  tcp, tcp_splice: Make helper for setting SO_LINGER socket option
  tcp: Don't leak sockets on error paths

 tcp.c        | 42 ++++++++++++++++++++++++++----------------
 tcp_conn.h   |  3 +++
 tcp_splice.c | 20 +++-----------------
 3 files changed, 32 insertions(+), 33 deletions(-)

-- 
2.54.0


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

end of thread, other threads:[~2026-05-13  7:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-13  7:18 [PATCH 0/2] Fix a Coverity reported socket leak David Gibson
2026-05-13  7:18 ` [PATCH 1/2] tcp, tcp_splice: Make helper for setting SO_LINGER socket option David Gibson
2026-05-13  7:18 ` [PATCH 2/2] tcp: Don't leak sockets on error paths David Gibson
2026-05-13  7:23 ` [PATCH 0/2] Fix a Coverity reported socket leak 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).