]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: aqc111: stop lying about skb->truesize
authorEric Dumazet <edumazet@google.com>
Mon, 6 May 2024 13:55:46 +0000 (13:55 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:25 +0000 (13:39 +0200)
commit097a9a015b4fd7b7073e34dadb8453c19c6412ee
tree163047ed04c69c896adfb4b914f1d5cc6c218e57
parent0488f7bcac2cbdb0a9587a8b1693656fb3368464
usb: aqc111: stop lying about skb->truesize

[ Upstream commit 9aad6e45c4e7d16b2bb7c3794154b828fb4384b4 ]

Some usb drivers try to set small skb->truesize and break
core networking stacks.

I replace one skb_clone() by an allocation of a fresh
and small skb, to get minimally sized skbs, like we did
in commit 1e2c61172342 ("net: cdc_ncm: reduce skb truesize
in rx path") and 4ce62d5b2f7a ("net: usb: ax88179_178a:
stop lying about skb->truesize")

Fixes: 361459cd9642 ("net: usb: aqc111: Implement RX data path")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240506135546.3641185-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/usb/aqc111.c