diff options
author | 2020-05-06 13:16:56 +0300 | |
---|---|---|
committer | 2020-05-06 14:15:46 -0700 | |
commit | 722c0f00d4feea77475a5dc943b53d60824a1e4e (patch) | |
tree | 6b4b721795d1cf58cb0986efcd70af85e3c61451 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: mvpp2: prevent buffer overflow in mvpp22_rss_ctx() (diff) | |
download | linux-dev-722c0f00d4feea77475a5dc943b53d60824a1e4e.tar.xz linux-dev-722c0f00d4feea77475a5dc943b53d60824a1e4e.zip |
net: mvpp2: cls: Prevent buffer overflow in mvpp2_ethtool_cls_rule_del()
The "info->fs.location" is a u32 that comes from the user via the
ethtool_set_rxnfc() function. We need to check for invalid values to
prevent a buffer overflow.
I copy and pasted this check from the mvpp2_ethtool_cls_rule_ins()
function.
Fixes: 90b509b39ac9 ("net: mvpp2: cls: Add Classification offload 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