diff options
| author | Aleksandr Mishin <amishin@t-argos.ru> | 2024-10-28 09:58:24 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-14 20:03:53 +0100 |
| commit | bd9287ae1e85d08ca4937252bda4fd7d5b3e0fe0 (patch) | |
| tree | f46837fb8665043f2f5048580372e753fb50d66d /include/net | |
| parent | 8a4311bbde702362fe7412045d06ab6767235dac (diff) | |
| download | linux-bd9287ae1e85d08ca4937252bda4fd7d5b3e0fe0.tar.gz linux-bd9287ae1e85d08ca4937252bda4fd7d5b3e0fe0.tar.bz2 linux-bd9287ae1e85d08ca4937252bda4fd7d5b3e0fe0.zip | |
fsl/fman: Validate cell-index value obtained from Device Tree
[ Upstream commit bd50c4125c98bd1a86f8e514872159700a9c678c ]
Cell-index value is obtained from Device Tree and then used to calculate
the index for accessing arrays port_mfl[], mac_mfl[] and intr_mng[].
In case of broken DT due to any error cell-index can contain any value
and it is possible to go beyond the array boundaries which can lead
at least to memory corruption.
Validate cell-index value obtained from Device Tree.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Link: https://patch.msgid.link/20241028065824.15452-1-amishin@t-argos.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions
