OpenCloudOS-Kernel/drivers/net/ethernet/mediatek
Dan Carpenter e7e7104e2d net: ethernet: mtk_eth_soc: out of bounds read in mtk_hwlro_get_fdir_entry()
The "fsp->location" variable comes from user via ethtool_get_rxnfc().
Check that it is valid to prevent an out of bounds read.

Fixes: 7aab747e55 ("net: ethernet: mediatek: add ethtool functions to configure RX flows of HW LRO")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-05-27 07:59:41 +01:00
..
Kconfig net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) 2022-04-06 14:08:49 +01:00
Makefile eth: mtk_eth_soc: silence the GCC 12 array-bounds warning 2022-05-22 22:21:11 +01:00
mtk_eth_path.c net: mtk_eth: simplify the mediatek code return expression 2020-12-14 17:51:26 -08:00
mtk_eth_soc.c net: ethernet: mtk_eth_soc: out of bounds read in mtk_hwlro_get_fdir_entry() 2022-05-27 07:59:41 +01:00
mtk_eth_soc.h net: ethernet: mtk_eth_soc: introduce support for mt7986 chipset 2022-05-22 22:24:33 +01:00
mtk_ppe.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-05-12 16:15:30 -07:00
mtk_ppe.h net: ethernet: mtk_eth_soc: support creating mac address based offload entries 2022-04-06 14:08:51 +01:00
mtk_ppe_debugfs.c net: ethernet: mtk_eth_soc: remove bridge flow offload type entry support 2022-04-06 14:08:50 +01:00
mtk_ppe_offload.c net: ethernet: mtk_eth_soc: fix error code in mtk_flow_offload_replace() 2022-05-23 11:42:34 +01:00
mtk_ppe_regs.h net: ethernet: mtk_eth_soc: add support for initializing the PPE 2021-03-24 12:48:39 -07:00
mtk_sgmii.c net: mtk_eth_soc: partially convert to phylink_pcs 2022-05-19 18:14:30 -07:00
mtk_star_emac.c eth: remove copies of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
mtk_wed.c net: ethernet: mtk_eth_soc: add check for allocation failure 2022-04-25 11:26:30 +01:00
mtk_wed.h net: ethernet: mtk_eth_soc: implement flow offloading to WED devices 2022-04-06 14:08:49 +01:00
mtk_wed_debugfs.c net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) 2022-04-06 14:08:49 +01:00
mtk_wed_ops.c net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) 2022-04-06 14:08:49 +01:00
mtk_wed_regs.h net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) 2022-04-06 14:08:49 +01:00