drivers/char/ppdev.c: fix information leak to userland
authorVasiliy Kulikov <segooon@gmail.com>
Wed, 27 Oct 2010 22:34:21 +0000 (15:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Oct 2010 01:03:14 +0000 (18:03 -0700)
commitb9b1134260e036fb75c468514569864dd6722f3e
tree1b93c6c85e6ed6aaf582f91ed9827586de002730
parent19714a8af8fe8618a9beace1f7a3bb10d55d5e2f
drivers/char/ppdev.c: fix information leak to userland

Structure par_timeout is copied to userland with some padding fields
unitialized.  Field tv_usec has type __kernel_suseconds_t, it differs from
tv_sec's type on some architectures.  It leads to leaking of stack memory.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ppdev.c