net: clear heap allocations for privileged ethtool actions, CVE-2010-4655
Several other ethtool functions leave heap uncleared (potentially) by
drivers. Some interfaces appear safe (eeprom, etc), in that the sizes
are well controlled. In some situations (e.g. unchecked error conditions),
the heap will remain unchanged in areas before copying back to userspace.
Note that these are less of an issue since these all require CAP_NET_ADMIN.
Signed-off-by: Kees Cook <firstname.lastname@example.org>
Acked-by: Ben Hutchings <email@example.com>
Signed-off-by: David S. Miller <firstname.lastname@example.org>