summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-10-14 01:09:40 -0700
committerLuis Henriques <luis.henriques@canonical.com>2015-10-28 10:33:20 +0000
commitd1a84d87c9b6907b8b90cf28e734ee6e37569b4e (patch)
tree84bfa37f7b20fcead0cd1098e7f5dc66dd33264e /include
parent48af18da94c0ae9bae9bcb59dc4477ccbea0157c (diff)
ethtool: Use kcalloc instead of kmalloc for ethtool_get_strings
commit 077cb37fcf6f00a45f375161200b5ee0cd4e937b upstream. It seems that kernel memory can leak into userspace by a kmalloc, ethtool_get_strings, then copy_to_user sequence. Avoid this by using kcalloc to zero fill the copied buffer. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions