From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202504 header.b=cXTcJ/PZ; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id B79685A0274 for ; Tue, 15 Apr 2025 09:16:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202504; t=1744701386; bh=LpzT2Uu5j7uGRVyqv10vPzHDQIa4P7yYyg9fs5IuLqo=; h=From:To:Cc:Subject:Date:From; b=cXTcJ/PZ2oLfbU1xHR3KvL8TxC0s/1gISE9JfAJK+q/TecDvdEzlJX0vKeAddeYwu TCS4ZBOamSm5zDpxxxW7mncLoGrYGFfgcNf4inH8NcG3rSb3srjZ7HGDZPdDX51WnB YKu0ki8FDiFnpgJrXGUUUL2ckJvBGSTZRQzQGZVjlM5ERrnDe382AWS7HiTuJxhTR1 2vOCRKOqGgV7rG2sYf2ZJXGFnBeNfRaITSczqapozcU/Jebb9cMeL6DonmuC+7Zblh o4zjB59DY3b+FAVwyaPn7aPkTdXiUA+CoyUdi25qejiFW7t39To/DCdjZEwA30sEfg 7GxHR+OHqqIxg== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4ZcFnk4zQ1z4xM1; Tue, 15 Apr 2025 17:16:26 +1000 (AEST) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/7] Assorted fixes for UDP socket and error handling problems Date: Tue, 15 Apr 2025 17:16:17 +1000 Message-ID: <20250415071624.2618589-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.49.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: LB7FJYEEBZFWCM4HXCSOOGNZVSSQNUJ4 X-Message-ID-Hash: LB7FJYEEBZFWCM4HXCSOOGNZVSSQNUJ4 X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Jon Maloy , David Gibson X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: My recent changes to UDP socket management caused some unfortunate side effects. In particular, it has some bad interactions with UDP error handling. Fix several bugs here, along with some reworks to allow that. David Gibson (7): udp: Fix breakage of UDP error handling by PKTINFO support udp: Be quieter about errors on UDP receive udp: Pass socket & flow information direction to error handling functions udp: Deal with errors as we go in udp_sock_fwd() udp: Add udp_pktinfo() helper udp: Minor re-organisation of udp_sock_recverr() udp: Propagate errors on listening and brand new sockets udp.c | 215 +++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 138 insertions(+), 77 deletions(-) -- 2.49.0