net: ethtool: clear heap allocations for ethtool function
authorAustin Kim <austindh.kim@gmail.com>
Wed, 9 Jun 2021 02:34:25 +0000 (03:34 +0100)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:47:20 +0000 (08:47 -0400)
commitc2311fd6de7815187fc31fe79fe6c969bc8a0b4c
treea76a621601761512bc66e5a8853c0a4f16ea4331
parentc2813d1966ba45ec205e57e94c53cd07805be2e1
net: ethtool: clear heap allocations for ethtool function

[ Upstream commit 80ec82e3d2c1fab42eeb730aaa7985494a963d3f ]

Several ethtool functions leave heap uncleared (potentially) by
drivers. This will leave the unused portion of heap unchanged and
might copy the full contents back to userspace.

Signed-off-by: Austin Kim <austindh.kim@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ethtool/ioctl.c