Revision ef15ddeeb6bee87c044bf7754fac524545bf71e8 authored by Aleksandr Mishin on 28 March 2024, 16:55:05 UTC, committed by David S. Miller on 03 April 2024, 10:00:33 UTC
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: 91c6945ea1f9 ("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>
1 parent c53fe72
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 58 bytes |
Kconfig | -rw-r--r-- | 63.2 KB |
Makefile | -rw-r--r-- | 1.9 KB |
build-version | -rwxr-xr-x | 177 bytes |
calibrate.c | -rw-r--r-- | 8.6 KB |
do_mounts.c | -rw-r--r-- | 11.0 KB |
do_mounts.h | -rw-r--r-- | 1.2 KB |
do_mounts_initrd.c | -rw-r--r-- | 3.8 KB |
do_mounts_rd.c | -rw-r--r-- | 7.7 KB |
init_task.c | -rw-r--r-- | 6.1 KB |
initramfs.c | -rw-r--r-- | 17.6 KB |
main.c | -rw-r--r-- | 37.8 KB |
noinitramfs.c | -rw-r--r-- | 862 bytes |
version-timestamp.c | -rw-r--r-- | 762 bytes |
version.c | -rw-r--r-- | 1.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...