linux-stable/drivers/net/ethernet
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
..
3com
8390
adaptec
aeroflex net: ethernet: aeroflex: fix UAF in greth_of_remove 2021-07-14 16:53:30 +02:00
agere
alacritech
allwinner net: allwinner: Fix some resources leak in the error handling path of the probe and in the remove function 2020-12-30 11:51:27 +01:00
alteon
altera net: altera: set a couple error code in probe() 2021-12-14 14:49:03 +01:00
amazon net: ena: set initial DMA width to avoid intel iommu issue 2020-12-02 08:49:52 +01:00
amd net: amd-xgbe: Fix skb data length underflow 2022-02-05 12:35:36 +01:00
apm xgene-v2: Fix a resource leak in the error handling path of 'xge_probe()' 2021-09-03 10:08:14 +02:00
apple
aquantia atlantic: Fix buff_ring OOB in aq_ring_rx_clean 2022-01-11 15:23:33 +01:00
arc net: arc: select CRC32 2021-10-20 11:40:16 +02:00
atheros alx: Fix an error handling path in 'alx_probe()' 2021-06-23 14:41:25 +02:00
aurora
broadcom bcmgenet: add WOL IRQ check 2022-01-27 09:19:55 +01:00
brocade drivers/net/ethernet: clean up unused assignments 2021-06-03 08:59:16 +02:00
cadence net: macb: fix use after free on rmmod 2021-09-30 10:09:24 +02:00
calxeda
cavium cavium: Fix return values of the probe function 2021-11-17 09:48:20 +01:00
chelsio libcxgb: Don't accidentally set RTO_ONLINK in cxgb_find_route() 2022-01-27 09:19:54 +01:00
cirrus
cisco ethernet:enic: Fix a use after free bug in enic_hard_start_xmit 2021-05-19 10:08:27 +02:00
cortina net: gemini: allow any RGMII interface mode 2022-01-27 09:19:46 +01:00
davicom net: davicom: Fix regulator not turned off on failed probe 2021-04-21 12:56:17 +02:00
dec net: ethernet: dec: tulip: de4x5: fix possible array overflows in type3_infoblock() 2021-12-08 09:01:10 +01:00
dlink
emulex Revert "be2net: disable bh with spin_lock in be_process_mcc" 2021-07-14 16:53:34 +02:00
ezchip net: ethernet: ezchip: fix error handling 2021-07-14 16:53:30 +02:00
faraday net: ftgmac100: add missing error return code in ftgmac100_probe() 2021-07-14 16:53:27 +02:00
freescale net/fsl: xgmac_mdio: Fix incorrect iounmap when removing module 2022-01-27 09:19:53 +01:00
fujitsu net: fujitsu: fix potential null-ptr-deref 2021-06-03 08:59:08 +02:00
google gve: fix gve_get_stats() 2021-10-13 10:08:20 +02:00
hisilicon net: hns3: handle empty unknown interrupt for VF 2022-02-01 17:24:39 +01:00
hp
huawei
i825xx lib82596: Fix IRQ check in sni_82596_probe 2022-01-27 09:19:55 +01:00
ibm ibmvnic: don't spin in tasklet 2022-02-01 17:24:39 +01:00
intel i40e: fix unsigned stat widths 2022-02-01 17:24:36 +01:00
marvell net: marvell: mvpp2: Fix the computation of shared CPUs 2021-12-08 09:01:12 +01:00
mediatek net: ethernet: mtk_eth_soc: fix error checking in mtk_mac_config() 2022-01-27 09:19:55 +01:00
mellanox Revert "net/mlx5: Add retry mechanism to the command entry index allocation" 2022-01-27 09:19:52 +01:00
micrel net: use netif_is_bridge_port() to check for IFF_BRIDGE_PORT 2021-11-02 19:46:15 +01:00
microchip net: ethernet: microchip: lan743x: Fix skb allocation failure 2021-11-06 13:59:44 +01:00
moxa net: moxa: fix UAF in moxart_mac_probe 2021-07-25 14:35:14 +02:00
mscc net: mscc: ocelot: correctly report the timestamping RX filters in ethtool 2021-12-01 09:23:34 +01:00
myricom ethernet: myri10ge: Fix missing error code in myri10ge_probe() 2021-06-18 09:58:59 +02:00
natsemi natsemi: xtensa: fix section mismatch warnings 2021-12-08 09:01:11 +01:00
neterion ethernet: s2io: fix setting mac address during resume 2021-10-20 11:40:16 +02:00
netronome nfp: Fix memory leak in nfp_cpp_area_cache_add() 2021-12-14 14:49:00 +01:00
ni
nvidia
nxp net: nxp: lpc_eth.c: avoid hang when bringing interface down 2021-11-02 19:46:14 +01:00
oki-semi net: pch_gbe: Use proper accessors to BE data in pch_ptp_match() 2021-07-19 08:53:07 +02:00
packetengines
pasemi net: pasemi: fix error return code in pasemi_mac_open() 2020-12-08 10:40:26 +01:00
pensando ionic: Initialize the 'lif->dbid_inuse' bitmap 2022-01-05 12:37:45 +01:00
qlogic qlcnic: potential dereference null pointer of rx_queue->page_ring 2021-12-29 12:23:34 +01:00
qualcomm net: qualcomm: fix QCA7000 checksum handling 2021-09-15 09:47:38 +02:00
rdc r6040: Restore MDIO clock frequency after MAC reset 2021-09-22 12:26:41 +02:00
realtek r8169: Add device 10ec:8162 to driver r8169 2021-11-17 09:48:21 +01:00
renesas net: renesas: sh_eth: Fix freeing wrong tx descriptor 2021-09-22 12:26:46 +02:00
rocker rocker: fix a sleeping in atomic bug 2022-01-27 09:19:36 +01:00
samsung
seeq
sfc sfc: falcon: Check null pointer of rx_queue->page_ring 2021-12-29 12:23:35 +01:00
sgi
silan
sis sis900: Fix missing pci_disable_device() in probe and remove 2021-08-04 12:27:40 +02:00
smsc drivers: net: smc911x: Check for error irq 2021-12-29 12:23:35 +01:00
socionext netsec: restore phy power state after controller reset 2021-03-30 14:35:23 +02:00
stmicro net: stmmac: add support for dwmac 3.40a 2021-10-27 09:54:29 +02:00
sun net: sun: SUNVNET_COMMON should depend on INET 2021-10-17 10:42:34 +02:00
synopsys drivers/net/ethernet: clean up unused assignments 2021-06-03 08:59:16 +02:00
tehuti net: tehuti: fix error return code in bdx_probe() 2021-03-30 14:35:20 +02:00
ti net: davinci_emac: Fix interrupt pacing disable 2021-11-17 09:48:47 +01:00
toshiba
tundra
via drivers/net/ethernet: clean up unused assignments 2021-06-03 08:59:16 +02:00
wiznet net: w5100: check return value after calling platform_get_resource() 2021-09-22 12:26:36 +02:00
xilinx net: axienet: increase default TX ring size to 128 2022-01-27 09:19:53 +01:00
xircom
xscale
dnet.c
dnet.h
ec_bhf.c net: ethernet: fix potential use-after-free in ec_bhf_remove 2021-06-23 14:41:27 +02:00
ethoc.c net: ethernet: Fix memleak in ethoc_probe 2021-01-12 20:16:13 +01:00
fealnx.c
jme.c
jme.h
Kconfig net: korina: select CRC32 2021-10-20 11:40:16 +02:00
korina.c net: korina: fix return value 2020-12-30 11:51:27 +01:00
lantiq_etop.c
lantiq_xrx200.c net: lantiq_xrx200: fix statistics of received bytes 2022-01-05 12:37:44 +01:00
Makefile