On Fri, Nov 20, 2026 at 04:48:09PM -0800, Florian Fainelli wrote:
> au1000_tx() copies skb->len bytes into a MAX_BUF_SIZE coherent buffer > without checking the length. The copy can corrupt neighboring DMA > buffers or run beyond the coherent allocation. > > AF_PACKET with PACKET_VNET_HDR can deliver oversized frames through > both plain sendmsg() and PACKET_TX_RING. In packet_snd(), a nonzero > virtio GSO type bypasses the MTU checks, even when the supplied gso_size > is large enough that virtio_net_hdr_to_skb() leaves the skb non-GSO. > Genuine GSO packets can also reach the driver as oversized frames: > au1000 has no TSO, and software segmentation using a user-supplied > gso_size can produce segments larger than MAX_BUF_SIZE. > > Drop oversized packets before touching the ring or copying any data, > and account them in tx_dropped. Use an IRQ-safe skb free for netpoll. > > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Signed-off-by: Florian Fainelli <f.fa…@gmail.com>
Reviewed-by: Simon Horman <hor…@kernel.org>