drivers/video/via/ioctl.c: prevent reading uninitialized stack memory
commitfba2e5ee19c351dc83008d29c9441b17a7d988af
authorDan Rosenberg <drosenberg@vsecurity.com>
Wed, 15 Sep 2010 23:08:24 +0000 (15 19:08 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:45:41 +0000 (21 12:45 -0700)
treee5382f303affee20b30c30ec825bd53e698c6b75
parent7afb10e792956dba10b8df9f95b50420854f6923
drivers/video/via/ioctl.c: prevent reading uninitialized stack memory

commit b4aaa78f4c2f9cde2f335b14f4ca30b01f9651ca upstream.

The VIAFB_GET_INFO device ioctl allows unprivileged users to read 246
bytes of uninitialized stack memory, because the "reserved" member of
the viafb_ioctl_info 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>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/video/via/ioctl.c