]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipc: shm: fix information leak to userland
authorVasiliy Kulikov <segooon@gmail.com>
Sat, 30 Oct 2010 14:22:49 +0000 (18:22 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:43:49 +0000 (12:43 -0700)
commitcebb2f20e037878d8c4f7402f3e8b73e855b72d5
treeb4537580f72d94b8f4e9b9acacdda4ad2c5e5fbd
parent3cb129c0ea32cb70e982551a8f6f578e46f0f0a8
ipc: shm: fix information leak to userland

commit 3af54c9bd9e6f14f896aac1bb0e8405ae0bc7a44 upstream.

The shmid_ds structure is copied to userland with shm_unused{,2,3}
fields unitialized.  It leads to leaking of contents of kernel stack
memory.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Acked-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
ipc/shm.c