lkml.org 
[lkml]   [2006]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Enabling message queue in 2.6.10 kernel
From
Date


>
> But the out put messages in # dmesg <enter> is like this
>
> Start send message
> Send ret = -14
> Err: sys_msgsnd
> Start recv message
> Recv ret = -42
> Err: sys_msgrcv
> Stop Kernel Thread
>
> Is there any thing I am missing. Please help soon.

you're missing that you're calling functions which expect a userspace
pointer, but with a kernel space pointer. You really shouldn't do that,
and in fact it doesn't work the way you did it. (you'd need to call
set_fs() and friends first, but if you're not really careful you open
security holes that way)

Can you explain why you'd want to do this from kernel space in the first
place? It's not unlikely that it's the wrong approach....

Greetings,
Arjan van de Ven

-
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: 2006-07-07 12:13    [W:0.024 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site