]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc: initialize structure memory to zero for compat functions
authorDan Rosenberg <drosenberg@vsecurity.com>
Wed, 27 Oct 2010 22:34:17 +0000 (15:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Oct 2010 01:03:13 +0000 (18:03 -0700)
commit03145beb455cf5c20a761e8451e30b8a74ba58d9
treea27b2221818b89039fc948d19780d52bb5c70789
parentb795218075a1e1183169abb66a90dcdcf30367f9
ipc: initialize structure memory to zero for compat functions

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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/compat.c
ipc/compat_mq.c