Re: [PATCH net] selftests: net: txtimestamp: fix out-of-bounds read in raw UDP checksum
From: patchwork-bot+netdevbpf
Date: Thu Oct 29 2026 - 10:45:51 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Tue, 27 Oct 2026 09:29:45 -0700 you wrote:
> With -r (SOCK_RAW, IPPROTO_UDP) the test writes only the UDP header and
> payload, and the kernel adds the IP header. get_udp_csum() still expects
> the IP source and destination addresses to directly precede the UDP
> header, and reads 2 * alen bytes before the start of the buffer: 8 bytes
> for IPv4, 32 bytes for IPv6.
>
> ASan reports a heap-buffer-overflow for both -4 -r and -6 -r. Without
> ASan the read usually goes unnoticed, but it faults when the buffer is
> the first chunk in the heap. That happens on Ubuntu 26.04, where the
> kselftest runner wraps the test in uutils stdbuf, and txtimestamp.sh
> fails with SIGSEGV on every run.
>
> [...]
Here is the summary with links:
- [net] selftests: net: txtimestamp: fix out-of-bounds read in raw UDP checksum
https://git.kernel.org/netdev/net/c/8daacee78b3d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html