diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-04-30 13:44:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-30 11:02:37 -0400 |
commit | f949a12fd697479f68d99dc65e9bbab68ee49043 (patch) | |
tree | 983664237abc90e605ef1ba16230d74132d8f6cd /drivers/memory | |
parent | b13023421b5179413421333f602850914f6a7ad8 (diff) | |
download | linux-f949a12fd697479f68d99dc65e9bbab68ee49043.tar.gz linux-f949a12fd697479f68d99dc65e9bbab68ee49043.tar.bz2 linux-f949a12fd697479f68d99dc65e9bbab68ee49043.zip |
net: dsa: bcm_sf2: fix buffer overflow doing set_rxnfc
The "fs->location" is a u32 that comes from the user in ethtool_set_rxnfc().
We can't pass unclamped values to test_bit() or it results in an out of
bounds access beyond the end of the bitmap.
Fixes: 7318166cacad ("net: dsa: bcm_sf2: Add support for ethtool::rxnfc")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/memory')
0 files changed, 0 insertions, 0 deletions