1
linux/ipc
suzuki 651971cb72 [PATCH] Fix the size limit of compat space msgsize
Currently we allocate 64k space on the user stack and use it the msgbuf for
sys_{msgrcv,msgsnd} for compat and the results are later copied in user [
by copy_in_user].  This patch introduces helper routines for
sys_{msgrcv,msgsnd} as below:

do_msgsnd() : Accepts the mtype and user space ptr to the buffer along with
the msqid and msgflg.

do_msgrcv() : Accepts a kernel space ptr to mtype and a userspace ptr to
the buffer.  The mtype has to be copied back the user space msgbuf by the
caller.

These changes avoid the need to allocate the msgsize on the userspace (
thus removing the size limt ) and the overhead of an extra copy_in_user().

Signed-off-by: Suzuki K P <suzuki@in.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-07 08:39:38 -08:00
..
compat_mq.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat.c [PATCH] Fix the size limit of compat space msgsize 2006-12-07 08:39:38 -08:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mqueue.c [PATCH] slab: remove kmem_cache_t 2006-12-07 08:39:25 -08:00
msg.c [PATCH] Fix the size limit of compat space msgsize 2006-12-07 08:39:38 -08:00
msgutil.c fix file specification in comments 2006-10-03 23:01:26 +02:00
sem.c [PATCH] Fix ipc entries removal 2006-11-03 12:27:56 -08:00
shm.c [PATCH] Fix ipc entries removal 2006-11-03 12:27:56 -08:00
util.c WorkStruct: Pass the work_struct pointer instead of context data 2006-11-22 14:55:48 +00:00
util.h [PATCH] Fix ipc entries removal 2006-11-03 12:27:56 -08:00