diff options
author | 2020-05-06 13:16:22 +0300 | |
---|---|---|
committer | 2020-05-06 14:15:46 -0700 | |
commit | 39bd16df7c31bb8cf5dfd0c88e42abd5ae10029d (patch) | |
tree | f0d1b06ad51170facfc101d6991082993fa55549 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests: net: tcp_mmap: clear whole tcp_zerocopy_receive struct (diff) | |
download | linux-dev-39bd16df7c31bb8cf5dfd0c88e42abd5ae10029d.tar.xz linux-dev-39bd16df7c31bb8cf5dfd0c88e42abd5ae10029d.zip |
net: mvpp2: prevent buffer overflow in mvpp22_rss_ctx()
The "rss_context" variable comes from the user via ethtool_get_rxfh().
It can be any u32 value except zero. Eventually it gets passed to
mvpp22_rss_ctx() and if it is over MVPP22_N_RSS_TABLES (8) then it
results in an array overflow.
Fixes: 895586d5dc32 ("net: mvpp2: cls: Use RSS contexts to handle RSS tables")
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