Re: [PATCH net v2] net: usb: sr9700: include receive overhead in the length check

From: patchwork-bot+netdevbpf

Date: Mon Sep 21 2026 - 20:31:31 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Sun, 20 Sep 2026 11:47:45 +0800 you wrote:
> The receive fixup subtracts the Ethernet CRC from the reported packet
> length, but compares that payload length against the whole remaining
> receive buffer. The following copy starts after the three-byte header,
> and the cursor advance consumes both that header and the four-byte CRC.
>
> Require the payload to fit after SR_RX_OVERHEAD before copying it or
> advancing to the next packet. The loop already ensures that the
> remaining buffer is larger than the overhead, so the subtraction is
> safe.
>
> [...]

Here is the summary with links:
- [net,v2] net: usb: sr9700: include receive overhead in the length check
https://git.kernel.org/netdev/net/c/c06bde80ae7a

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html