diff options
author | Johannes Berg <johannes.berg@intel.com> | 2020-10-07 12:53:50 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-10-09 01:06:01 +0200 |
commit | db972e5325183df1265bf851b32dc7530dd4393a (patch) | |
tree | 4d3ce070c491a014b4f332ec8fb5c9d34c76d31b /net/sunrpc/auth_unix.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (diff) | |
download | linux-db972e5325183df1265bf851b32dc7530dd4393a.tar.xz linux-db972e5325183df1265bf851b32dc7530dd4393a.zip |
ethtool: strset: allow ETHTOOL_A_STRSET_COUNTS_ONLY attr
The ETHTOOL_A_STRSET_COUNTS_ONLY flag attribute was previously
not allowed to be used, but now due to the policy size reduction
we would access the tb[] array out of bounds since we tried to
check for the attribute despite it not being accepted.
Fix both issues by adding it correctly to the appropriate policy.
Fixes: ff419afa4310 ("ethtool: trim policy tables")
Fixes: 71921690f974 ("ethtool: provide string sets with STRSET_GET request")
Reported-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Tested-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/sunrpc/auth_unix.c')
0 files changed, 0 insertions, 0 deletions