mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: BAREBOX <barebox@lists.infradead.org>,
	 Sascha Hauer <s.hauer@pengutronix.de>
Cc: "Claude Opus 4.6" <noreply@anthropic.com>
Subject: Re: [PATCH 00/10] net: prevent buffer overflows in UDP packets
Date: Fri, 17 Apr 2026 12:40:21 +0200	[thread overview]
Message-ID: <177642242116.157093.4627407847590900281.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20260402-net-eth-do-udp-v1-0-af5d9fd6beec@pengutronix.de>


On Thu, 02 Apr 2026 08:36:39 +0200, Sascha Hauer wrote:
> Our UDP handlers all use a UDP packets length without checking if it
> fits into the incoming ethernet frame. Create a net_eth_to_udp() helper
> which does the bounds checking and use it throughout the code.
> 
> 

Applied, thanks!

[01/10] net: add net_eth_to_udp() helper for validated UDP extraction
        https://git.pengutronix.de/cgit/barebox/commit/?id=a5c8c5b28678 (link may not be stable)
[02/10] fs: tftp: use net_eth_to_udp() for packet parsing
        https://git.pengutronix.de/cgit/barebox/commit/?id=336a561b8276 (link may not be stable)
[03/10] net: dhcp: use net_eth_to_udp() for packet parsing
        https://git.pengutronix.de/cgit/barebox/commit/?id=590413b42fe3 (link may not be stable)
[04/10] fs: nfs: use net_eth_to_udp() for packet parsing
        https://git.pengutronix.de/cgit/barebox/commit/?id=3f3844baaae8 (link may not be stable)
[05/10] net: dns: use net_eth_to_udp() for packet parsing
        https://git.pengutronix.de/cgit/barebox/commit/?id=7e445fc4f390 (link may not be stable)
[06/10] net: sntp: use net_eth_to_udp() for packet parsing
        https://git.pengutronix.de/cgit/barebox/commit/?id=d650913f3a9f (link may not be stable)
[07/10] net: netconsole: use net_eth_to_udp() for packet parsing
        https://git.pengutronix.de/cgit/barebox/commit/?id=895ee90de389 (link may not be stable)
[08/10] net: fastboot: use net_eth_to_udp() for packet parsing
        https://git.pengutronix.de/cgit/barebox/commit/?id=cbe8a28183d0 (link may not be stable)
[09/10] net: fastboot: stop using net_eth_to_udp_payload() for PACKET_SIZE
        https://git.pengutronix.de/cgit/barebox/commit/?id=2d89ebc47f26 (link may not be stable)
[10/10] net: remove unused net_eth_to_udp{hdr,_payload,len}() helpers
        https://git.pengutronix.de/cgit/barebox/commit/?id=bd46061883c4 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




      parent reply	other threads:[~2026-04-17 10:40 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-02  6:36 Sascha Hauer
2026-04-02  6:36 ` [PATCH 01/10] net: add net_eth_to_udp() helper for validated UDP extraction Sascha Hauer
2026-04-17 10:04   ` Ahmad Fatoum
2026-04-02  6:36 ` [PATCH 02/10] fs: tftp: use net_eth_to_udp() for packet parsing Sascha Hauer
2026-04-17 10:05   ` Ahmad Fatoum
2026-04-02  6:36 ` [PATCH 03/10] net: dhcp: " Sascha Hauer
2026-04-17 10:07   ` Ahmad Fatoum
2026-04-02  6:36 ` [PATCH 04/10] fs: nfs: " Sascha Hauer
2026-04-17 10:10   ` Ahmad Fatoum
2026-04-02  6:36 ` [PATCH 05/10] net: dns: " Sascha Hauer
2026-04-17 10:10   ` Ahmad Fatoum
2026-04-02  6:36 ` [PATCH 06/10] net: sntp: " Sascha Hauer
2026-04-17 10:12   ` Ahmad Fatoum
2026-04-02  6:36 ` [PATCH 07/10] net: netconsole: " Sascha Hauer
2026-04-17 10:12   ` Ahmad Fatoum
2026-04-02  6:36 ` [PATCH 08/10] net: fastboot: " Sascha Hauer
2026-04-17 10:14   ` Ahmad Fatoum
2026-04-02  6:36 ` [PATCH 09/10] net: fastboot: stop using net_eth_to_udp_payload() for PACKET_SIZE Sascha Hauer
2026-04-17 10:17   ` Ahmad Fatoum
2026-04-02  6:36 ` [PATCH 10/10] net: remove unused net_eth_to_udp{hdr,_payload,len}() helpers Sascha Hauer
2026-04-17 10:17   ` Ahmad Fatoum
2026-04-17 10:21 ` [PATCH 00/10] net: prevent buffer overflows in UDP packets Ahmad Fatoum
2026-04-17 10:40 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=177642242116.157093.4627407847590900281.b4-ty@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=noreply@anthropic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox