ipc: initialize structure memory to zero for compat functions
commit3cb129c0ea32cb70e982551a8f6f578e46f0f0a8
authorDan Rosenberg <drosenberg@vsecurity.com>
Wed, 27 Oct 2010 22:34:17 +0000 (27 15:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:43:48 +0000 (21 12:43 -0700)
tree3eb61efedc0ac295e2ce60e7ec00a79fe601b1e6
parent7ee77118ebd4b01892adaef73633f61dcffc57b3
ipc: initialize structure memory to zero for compat functions

commit 03145beb455cf5c20a761e8451e30b8a74ba58d9 upstream.

This takes care of leaking uninitialized kernel stack memory to
userspace from non-zeroed fields in structs in compat ipc functions.

Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
ipc/compat.c
ipc/compat_mq.c