diff options
author | Dan Carpenter <[email protected]> | 2021-03-02 14:21:54 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-03-03 08:44:24 -0800 |
commit | 2378b2c9ecf437b918dff246b81b5b624ec14f80 (patch) | |
tree | 93b684b11f887f208f69c8818e4ac690a983c9c8 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | 95b39f07a17faef3a9b225248ba449b976e529c8 (diff) |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions