]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:29:17 +0000 (09:29 +0200)
commit4a333e824fad24df79fb557dac384504116dd67d
tree68cac2b131bfef99fbc0021fce359a53f29bd8c0
parentacb55126f4a2bee2ee460b7f0b8ca6f0720e88cb
net: ethtool: clear heap allocations for ethtool function

BugLink: https://bugs.launchpad.net/bugs/1936863
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/ethtool/ioctl.c