diff options
| author | Aleksandr Mishin <[email protected]> | 2024-10-28 06:58:24 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-11-01 02:05:09 +0000 |
| commit | bd50c4125c98bd1a86f8e514872159700a9c678c (patch) | |
| tree | 0c1246d87cf596cfb8785ae0c7eefa711613e4c5 /lib/dynamic_queue_limits.c | |
| parent | netlabel: document doi_remove field of struct netlbl_calipso_ops (diff) | |
| download | kernel-bd50c4125c98bd1a86f8e514872159700a9c678c.tar.gz kernel-bd50c4125c98bd1a86f8e514872159700a9c678c.zip | |
fsl/fman: Validate cell-index value obtained from Device Tree
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 <[email protected]>
Signed-off-by: Aleksandr Mishin <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/dynamic_queue_limits.c')
0 files changed, 0 insertions, 0 deletions
