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)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 4 Sep 2017 14:00:50 +0000 (16:00 +0200)
commit8e75f7a7a00461ef6d91797a60b606367f6e344d
tree004a1d393f4c0b7a771540e54f566c522782f93d
parentb9a58de545858ac9ee67745cdea6d94cc322938e
video: fbdev: aty: do not leak uninitialized padding in clk to userspace

'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>
drivers/video/fbdev/aty/atyfb_base.c