lkml.org 
[lkml]   [2003]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] Posix Message Queues
Hi Michal,

You've implemented mq_open() in user space by combining open()+ioctl()
syscalls. I think it's racy:

What if two processes call
{
fd = mq_open("dummy",O_CREAT,0777,{.mq_maxmsg=10000});
mq_send = mq_send(fd,buf,10000,0);
}

I think setting the queue options and creating a new queue must be
atomic, i.e. we need a new syscall.

Could you replace the printk's with Dprintk or something like that? User
space misbehaviour such as bad pointers should not generate printk messages.

--
Manfred


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:2.418 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site