OSDN Git Service

video: fbdev: aty: do not leak uninitialized padding in clk to userspace
authorVladis Dronov <vdronov@redhat.com>
Mon, 4 Sep 2017 14:00:50 +0000 (16:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2017 07:44:05 +0000 (09:44 +0200)
commit64afde6f956dfcb719e329a9d2098b53e68d2755
treecccbd13b4a8d8402a99606cbc5b12fb1d796d1a7
parentea37f61f5de045ce72529ea95c7aa38c8187993c
video: fbdev: aty: do not leak uninitialized padding in clk to userspace

commit 8e75f7a7a00461ef6d91797a60b606367f6e344d upstream.

'clk' is copied to a userland with padding byte(s) after 'vclk_post_div'
field unitialized, leaking data from the stack. Fix this ensuring all of
'clk' is initialized to zero.

References: https://github.com/torvalds/linux/pull/441
Reported-by: sohu0106 <sohu0106@126.com>
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/fbdev/aty/atyfb_base.c