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:
> From: Jacob Kelle
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
> ---
>
> stable too...
>
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
Applied and queued up f