]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:48:30 +0000 (08:48 -0400)
commit8b0f8cf5b02df6447974eea1a456b9f642fa1241
tree6f695ea77162224f88a29cf2f7c73fe1def40735
parent6ab6b68ddf09fad033e653ed85acc8789d57fa6b
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/core/ethtool.c