linux-stable/drivers/net/ethernet/marvell/octeontx2/af
Aleksandr Mishin ef15ddeeb6 octeontx2-af: Add array index check
In rvu_map_cgx_lmac_pf() the 'iter', which is used as an array index, can reach
value (up to 14) that exceed the size (MAX_LMAC_COUNT = 8) of the array.
Fix this bug by adding 'iter' value check.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 91c6945ea1 ("octeontx2-af: cn10k: Add RPM MAC support")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-04-03 11:00:33 +01:00
..
Makefile
cgx.c Octeontx2-af: fix pause frame configuration in GMP mode 2024-03-28 11:56:47 +01:00
cgx.h octeontx2-af: CN10KB: Add USGMII LMAC mode 2023-08-28 10:05:55 +01:00
cgx_fw_if.h
common.h octeontx2-af: cn10k: Set NIX DWRR MTU for CN10KB silicon 2023-06-13 09:54:57 +01:00
lmac_common.h octeontx2-af: Reset MAC features in FLR 2023-07-02 15:47:19 +01:00
mbox.c octeontx2: Detect the mbox up or down message via register 2024-03-20 10:49:07 +00:00
mbox.h octeontx2: Detect the mbox up or down message via register 2024-03-20 10:49:07 +00:00
mcs.c octeontx2-af: Fix mcs stats register address 2023-12-06 13:44:38 +01:00
mcs.h octeontx2-af: Adjust Tx credits when MCS external bypass is disabled 2023-12-06 13:44:38 +01:00
mcs_cnf10kb.c
mcs_reg.h octeontx2-af: Fix mcs stats register address 2023-12-06 13:44:38 +01:00
mcs_rvu_if.c octeontx2: Detect the mbox up or down message via register 2024-03-20 10:49:07 +00:00
npc.h octeontx2-pf: Add TC flower offload support for TCP flags 2024-03-08 10:26:52 +00:00
npc_profile.h octeontx2-af: Add filter profiles in hardware to extract packet headers 2024-01-29 11:28:41 +00:00
ptp.c octeontx2-pf: Enable PTP PPS output support 2023-09-15 10:35:07 +01:00
ptp.h octeontx2-pf: Use PTP HW timestamp counter atomic update feature 2023-08-23 08:20:50 +01:00
rpm.c octeontx2-af: CN10KB: Fix FIFO length calculation for RPM2 2024-01-11 16:48:21 -08:00
rpm.h octeontx2-af: Reset MAC features in FLR 2023-07-02 15:47:19 +01:00
rvu.c octeontx2-af: Use separate handlers for interrupts 2024-03-20 10:49:07 +00:00
rvu.h octeontx2: Detect the mbox up or down message via register 2024-03-20 10:49:07 +00:00
rvu_cgx.c octeontx2-af: Add array index check 2024-04-03 11:00:33 +01:00
rvu_cn10k.c octeontx2-af: cn10k: Increase outstanding LMTST transactions 2023-12-06 13:37:32 +01:00
rvu_cpt.c
rvu_debugfs.c octeontx2-pf: Add TC flower offload support for TCP flags 2024-03-08 10:26:52 +00:00
rvu_devlink.c octeontx2-af: Fix devlink params 2024-03-08 10:17:07 +00:00
rvu_devlink.h
rvu_nix.c octeontx2-af: Cleanup loopback device checks 2024-02-02 12:12:35 +00:00
rvu_npa.c
rvu_npc.c octeontx2-af: Fix issue with loading coalesced KPU profiles 2024-03-29 11:45:42 +00:00
rvu_npc_fs.c octeontx2-pf: Add TC flower offload support for TCP flags 2024-03-08 10:26:52 +00:00
rvu_npc_fs.h
rvu_npc_hash.c octeontx2-af: Remove redundant functions rvu_npc_exact_mac2u64() 2023-08-09 15:29:44 -07:00
rvu_npc_hash.h octeontx2-af: Fix hash extraction enable configuration 2023-07-25 10:12:26 +02:00
rvu_reg.c octeontx2-af: Update Tx link register range 2023-12-06 13:44:38 +01:00
rvu_reg.h octeontx2-af: Create BPIDs free pool 2024-02-02 12:12:35 +00:00
rvu_sdp.c Octeontx2-af: Fetch MAC channel info from firmware 2024-02-14 10:35:25 +00:00
rvu_struct.h octeontx2-af: debugfs: update CQ context fields 2023-12-01 20:06:12 -08:00
rvu_switch.c octeontx2-af: Install TC filter rules in hardware based on priority 2023-07-25 09:44:19 +02:00
rvu_trace.c
rvu_trace.h