diff options
author | Rustam Subkhankulov <subkhankulov@ispras.ru> | 2022-08-17 03:38:45 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-18 07:58:15 +0300 |
commit | fd8e899cdb5ecaf8e8ee73854a99e10807eef1de (patch) | |
tree | 0227d389b7ad0c94a359fef732815bfca0fdf693 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | bec13ba9cef01cd37084d57608e7fa3d5a0b96d7 (diff) | |
download | linux-fd8e899cdb5ecaf8e8ee73854a99e10807eef1de.tar.xz |
net: dsa: sja1105: fix buffer overflow in sja1105_setup_devlink_regions()
If an error occurs in dsa_devlink_region_create(), then 'priv->regions'
array will be accessed by negative index '-1'.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by: Rustam Subkhankulov <subkhankulov@ispras.ru>
Fixes: bf425b82059e ("net: dsa: sja1105: expose static config as devlink region")
Link: https://lore.kernel.org/r/20220817003845.389644-1-subkhankulov@ispras.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions