WSL2-Linux-Kernel/net/ethtool
Ido Schimmel 88f9a87afe ethtool: Validate module EEPROM offset as part of policy
Validate the offset to read from module EEPROM as part of the netlink
policy and remove the corresponding check from the code.

This also makes it possible to query the offset range from user space:

 $ genl ctrl policy name ethtool
 ...
 ID: 0x14  policy[32]:attr[2]: type=U32 range:[0,255]
 ...

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-06-22 10:40:54 -07:00
..
Makefile
bitset.c
bitset.h
cabletest.c
channels.c
coalesce.c
common.c
common.h
debug.c
eee.c
eeprom.c ethtool: Validate module EEPROM offset as part of policy 2021-06-22 10:40:54 -07:00
features.c
fec.c
ioctl.c net: ethtool: clear heap allocations for ethtool function 2021-06-09 13:53:31 -07:00
linkinfo.c
linkmodes.c
linkstate.c
netlink.c ethtool: add a stricter length check 2021-06-16 00:40:44 -07:00
netlink.h ethtool: Decrease size of module EEPROM get policy array 2021-06-22 10:40:54 -07:00
pause.c
privflags.c
rings.c
stats.c ethtool: stats: Fix a copy-paste error 2021-05-19 11:57:33 -07:00
strset.c ethtool: strset: fix message length calculation 2021-06-14 12:14:24 -07:00
tsinfo.c
tunnels.c
wol.c