drivers/video/sis/sis_main.c: prevent reading uninitialized stack memory

The FBIOGET_VBLANK device ioctl allows unprivileged users to read 16 bytes
of uninitialized stack memory, because the "reserved" member of the
fb_vblank struct declared on the stack is not altered or zeroed before
being copied back to the user. This patch takes care of it.

Signed-off-by: Dan Rosenberg <dan.j.rosenberg@gmail.com>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Dan Rosenberg and committed by Linus Torvalds fd02db9d cb1dcc0f

+3
+3
drivers/video/sis/sis_main.c
··· 1701 1701 break; 1702 1702 1703 1703 case FBIOGET_VBLANK: 1704 + 1705 + memset(&sisvbblank, 0, sizeof(struct fb_vblank)); 1706 + 1704 1707 sisvbblank.count = 0; 1705 1708 sisvbblank.flags = sisfb_setupvbblankflags(ivideo, &sisvbblank.vcount, &sisvbblank.hcount); 1706 1709