linux-stable/drivers/net/usb
Eric Dumazet 9bda5e2f62 net: usb: ax88179_178a: stop lying about skb->truesize
[ Upstream commit 4ce62d5b2f ]

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

In this patch, I removed one of the skb->truesize overide.

I also replaced one skb_clone() by an allocation of a fresh
and small skb, to get minimally sized skbs, like we did
in commit 1e2c611723 ("net: cdc_ncm: reduce skb truesize
in rx path")

Fixes: f8ebb3ac88 ("net: usb: ax88179_178a: Fix packet receiving")
Reported-by: shironeko <shironeko@tesaguri.club>
Closes: https://lore.kernel.org/netdev/c110f41a0d2776b525930f213ca9715c@tesaguri.club/
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Jose Alonso <joalonsof@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240421193828.1966195-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-05-02 16:23:41 +02:00
..
aqc111.c usb: aqc111: check packet for fixup for true limit 2023-12-20 15:44:31 +01:00
aqc111.h
asix.h
asix_common.c
asix_devices.c
ax88172a.c asix: Add check for usbnet_get_endpoints 2024-01-15 18:48:05 +01:00
ax88179_178a.c net: usb: ax88179_178a: stop lying about skb->truesize 2024-05-02 16:23:41 +02:00
catc.c
cdc-phonet.c
cdc_eem.c
cdc_ether.c USB: zaurus: Add ID for A-300/B-500/C-700 2023-08-11 11:57:51 +02:00
cdc_mbim.c
cdc_ncm.c
cdc_subset.c
ch9200.c
cx82310_eth.c
dm9601.c net: usb: dm9601: fix wrong return value in dm9601_mdio_read 2024-03-06 14:37:48 +00:00
gl620a.c
hso.c
huawei_cdc_ncm.c
int51x1.c
ipheth.c
kalmia.c
kaweth.c
Kconfig
lan78xx.c net: lan78xx: fix runtime PM count underflow on link stop 2024-03-15 10:48:14 -04:00
lan78xx.h
lg-vl600.c
Makefile
mcs7830.c
net1080.c
pegasus.c
pegasus.h
plusb.c
qmi_wwan.c net: usb: qmi_wwan: claim interface 4 for ZTE MF290 2023-12-20 15:44:35 +01:00
r8152.c r8152: Release firmware if we have an error in probe 2023-11-08 17:30:42 +01:00
rndis_host.c
rtl8150.c
sierra_net.c
smsc75xx.c net: usb: smsc75xx: Fix uninit-value access in __smsc75xx_read_reg 2023-10-10 21:53:38 +02:00
smsc75xx.h
smsc95xx.c net: usb: smsc95xx: Fix uninit-value access in smsc95xx_read_reg 2023-11-08 17:30:42 +01:00
smsc95xx.h
sr9700.c
sr9700.h
sr9800.c sr9800: Add check for usbnet_get_endpoints 2024-03-26 18:21:52 -04:00
sr9800.h
usbnet.c net: usbnet: Fix WARNING in usbnet_start_xmit/usb_submit_urb 2023-08-11 11:57:53 +02:00
zaurus.c USB: zaurus: Add ID for A-300/B-500/C-700 2023-08-11 11:57:51 +02:00