1
0
Fork 0
alistair23-linux/drivers/net/ethernet/marvell
Dan Carpenter 2378b2c9ec octeontx2-af: cn10k: fix an array overflow in is_lmac_valid()
The value of "lmac_id" can be controlled by the user and if it is larger
then the number of bits in long then it reads outside the bitmap.
The highest valid value is less than MAX_LMAC_PER_CGX (4).

Fixes: 91c6945ea1 ("octeontx2-af: cn10k: Add RPM MAC support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-03-03 08:44:24 -08:00
..
mvpp2 net: mvpp2: skip RSS configurations on loopback port 2021-02-22 18:41:45 -08:00
octeontx2 octeontx2-af: cn10k: fix an array overflow in is_lmac_valid() 2021-03-03 08:44:24 -08:00
prestera net: switchdev: pass flags and mask to both {PRE_,}BRIDGE_FLAGS attributes 2021-02-12 17:08:04 -08:00
Kconfig net: mvpp2: Remove unneeded Kconfig dependency. 2021-01-23 13:23:35 -08:00
Makefile net: marvell: prestera: Add driver for Prestera family ASIC devices 2020-09-17 16:35:46 -07:00
mv643xx_eth.c net: tso: cache transport header length 2020-06-18 20:46:23 -07:00
mvmdio.c net: mvmdio: avoid error message for optional IRQ 2020-03-17 20:54:37 -07:00
mvneta.c net: mvneta: Implement mqprio support 2021-02-16 15:03:26 -08:00
mvneta_bm.c net: mvneta: use devm_platform_ioremap_resource() to simplify code 2019-08-21 13:52:33 -07:00
mvneta_bm.h net: mvneta: make stub functions static inline 2019-10-25 16:21:48 -07:00
pxa168_eth.c net: pxa168_eth: remove unused variable 'retval' int pxa168_eth_change_mtu() 2020-09-14 13:43:38 -07:00
skge.c net: skge: convert tasklets to use new tasklet_setup() API 2020-09-14 13:02:37 -07:00
skge.h PCI: Add constant PCI_STATUS_ERROR_BITS 2020-03-04 14:21:00 -08:00
sky2.c Marvell Sky2 Ethernet adapter: fix warning messages. 2021-02-23 12:17:21 -08:00
sky2.h PCI: Add constant PCI_STATUS_ERROR_BITS 2020-03-04 14:21:00 -08:00