]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.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>
Thu, 9 Dec 2010 21:32:37 +0000 (13:32 -0800)
commitf3aa864b00bbcd49327d7911f8c39a65e51e2ca9
tree576de861f74a3699a71369dd1170c5782a5eeaf5
parentc849311ca209e47937484ffe115b66193fb9c23b
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