[PATCH] ethtool: Use kcalloc instead of kmalloc for ethtool_get_strings

2015-10-14 Thread Joe Perches
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 --- stable too... On Tue, 2015-10-13 at 23:59 -0700, Jeff Kirsher wrote:

Re: [PATCH] ethtool: Use kcalloc instead of kmalloc for ethtool_get_strings

2015-10-14 Thread Ben Hutchings
On Wed, 2015-10-14 at 01:09 -0700, Joe Perches wrote: > 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 > --- >

Re: [PATCH] ethtool: Use kcalloc instead of kmalloc for ethtool_get_strings

2015-10-14 Thread David Miller
From: Joe Perches Date: Wed, 14 Oct 2015 01:09:40 -0700 > 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