linux-stable/drivers/net
Shyam Sundar S K 9892742f03 net: amd-xgbe: Fix skb data length underflow
commit 5aac9108a1 upstream.

There will be BUG_ON() triggered in include/linux/skbuff.h leading to
intermittent kernel panic, when the skb length underflow is detected.

Fix this by dropping the packet if such length underflows are seen
because of inconsistencies in the hardware descriptors.

Fixes: 622c36f143 ("amd-xgbe: Fix jumbo MTU processing on newer hardware")
Suggested-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20220127092003.2812745-1-Shyam-sundar.S-k@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-05 12:35:36 +01:00
..
appletalk net: appletalk: cops: Fix data race in cops_probe1 2021-06-16 11:59:36 +02:00
arcnet
bonding net: bonding: debug: avoid printing debug logs when bond is not notifying peers 2022-01-27 09:19:43 +01:00
caif net: caif: fix memory leak in ldisc_open 2021-06-30 08:47:47 -04:00
can can: xilinx_can: xcan_probe(): check for error irq 2022-01-27 09:19:37 +01:00
dsa net: dsa: rtl8366rb: Fix off-by-one bug 2021-11-17 09:48:34 +01:00
ethernet net: amd-xgbe: Fix skb data length underflow 2022-02-05 12:35:36 +01:00
fddi net: fddi: fix UAF in fza_probe 2021-07-25 14:35:15 +02:00
fjes fjes: Check for error irq 2021-12-29 12:23:35 +01:00
hamradio yam: fix a memory leak in yam_siocdevprivate() 2022-02-01 17:24:39 +01:00
hippi
hyperv
ieee802154 ieee802154: atusb: fix uninit value in atusb_set_extended_addr 2022-01-11 15:23:31 +01:00
ipvlan
netdevsim netdevsim: Zero-initialize memory for new map's value in function nsim_bpf_map_alloc 2021-12-22 09:29:38 +01:00
phy phylib: fix potential use-after-free 2022-02-01 17:24:38 +01:00
plip
ppp ppp: ensure minimum packet size in ppp_write() 2022-01-27 09:19:35 +01:00
slip
team
usb ipheth: fix EOVERFLOW in ipheth_rcvbulk_callback 2022-02-05 12:35:36 +01:00
vmxnet3 vmxnet3: do not stop tx queues after netif_device_detach() 2021-11-17 09:48:21 +01:00
wan net: lapbether: Prevent racing when checking whether the netif is running 2021-05-14 09:44:26 +02:00
wimax staging: wimax/i2400m: fix byte-order issue 2021-05-11 14:04:05 +02:00
wireless iwlwifi: mvm: Increase the scan timeout guard to 30 seconds 2022-01-27 09:19:49 +01:00
xen-netback xen/netback: don't queue unlimited number of packages 2021-12-22 09:29:41 +01:00
Kconfig
LICENSE.SRC
Makefile
Space.c
dummy.c
eql.c
geneve.c net: geneve: modify IP header check in geneve6_xmit_skb and geneve_xmit_skb 2021-05-14 09:44:31 +02:00
gtp.c
ifb.c
loopback.c
macsec.c
macvlan.c
macvtap.c
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c tun: fix bonding active backup with arp monitoring 2021-11-26 10:47:21 +01:00
veth.c veth: Do not record rx queue hint in veth_xmit 2022-01-16 09:15:38 +01:00
virtio_net.c virtio-net: use NETIF_F_GRO_HW instead of NETIF_F_LRO 2021-08-26 08:36:18 -04:00
vrf.c vrf: don't run conntrack on vrf with !dflt qdisc 2021-12-14 14:48:59 +01:00
vsockmon.c
vxlan.c vxlan: add missing rcu_read_lock() in neigh_reduce() 2021-07-14 16:53:31 +02:00
xen-netfront.c xen/netfront: harden netfront against event channel storms 2021-12-22 09:29:40 +01:00