diff options
author | 2021-03-02 14:21:54 +0300 | |
---|---|---|
committer | 2021-03-03 08:44:24 -0800 | |
commit | 2378b2c9ecf437b918dff246b81b5b624ec14f80 (patch) | |
tree | 93b684b11f887f208f69c8818e4ac690a983c9c8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: ethernet: mtk-star-emac: fix wrong unmap in RX handling (diff) | |
download | linux-dev-2378b2c9ecf437b918dff246b81b5b624ec14f80.tar.xz linux-dev-2378b2c9ecf437b918dff246b81b5b624ec14f80.zip |
octeontx2-af: cn10k: fix an array overflow in is_lmac_valid()
The value of "lmac_id" can be controlled by the user and if it is larger
then the number of bits in long then it reads outside the bitmap.
The highest valid value is less than MAX_LMAC_PER_CGX (4).
Fixes: 91c6945ea1f9 ("octeontx2-af: cn10k: Add RPM MAC support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions