mtd: mtdchar: fix information leak to userland
authorVasiliy Kulikov <segooon@gmail.com>
Sat, 6 Nov 2010 14:41:24 +0000 (17:41 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 3 Dec 2010 16:29:12 +0000 (16:29 +0000)
commita0c5a3944ce121bb2417c771f77b18485cd84e18
tree877da9f538e5e53476f22f9d90212116abff8356
parentac80dac00f8630803dc0c7f8fbe6983a8e2a8b5f
mtd: mtdchar: fix information leak to userland

Structure mtd_info_user is copied to userland with padding byted
between "type" and "flags" fields uninitialized.  It leads to leaking
of contents of kernel stack memory.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdchar.c