diff options
| author | Nicolai Buchwitz <nb@tipi-net.de> | 2026-10-06 07:41:32 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-10-08 11:48:50 -0700 |
| commit | 6b48ed85ae0ca37c7403ef5d512be75975844f2f (patch) | |
| tree | 009f5227692a79a54dc6d9f5da534e11059f1f99 /tools/lib/python/kdoc | |
| parent | 7c24a4e87e219072e5e106f6791146cbf3b056b3 (diff) | |
| download | linux-next-6b48ed85ae0ca37c7403ef5d512be75975844f2f.tar.gz linux-next-6b48ed85ae0ca37c7403ef5d512be75975844f2f.zip | |
net: macb: check TX ring before modifying skb
macb_pad_and_fcs() replaces or extends the skb before the ring space
check. On NETDEV_TX_BUSY the stack requeues an skb that is already freed
or grown.
Check the ring first, using the padded length for the descriptor count.
Nonlinear skbs always take the copy path so the count can assume a
linear skb.
Fixes: 653e92a9175e ("net: macb: add support for padding and fcs computation")
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
Link: https://patch.msgid.link/20261006-nb-macb-shared-skb-net-v1-1-a80641479041@tipi-net.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
