]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 17 Apr 2011 20:15:41 +0000 (16:15 -0400)
commit5819449cad881107f3fd52025b7a0f5134ab1c85
treece0e4ad55bec7b92cf1eb0512435c7162c1f02a7
parent546b259bef0d2618f2a466a1a7e5678f245f3024
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: Paul Gortmaker <paul.gortmaker@windriver.com>
ipc/compat.c
ipc/compat_mq.c