mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan@infradead.org>
To: chinmaya@innomedia.soft.net
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Enabling message queue in 2.6.10 kernel
Date: Fri, 07 Jul 2006 12:08:58 +0200	[thread overview]
Message-ID: <1152266938.3111.45.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <44AE3188.6000304@innomedia.soft.net>



> 
> 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


      reply	other threads:[~2006-07-07 10:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-07 10:03 Chinmaya Mishra
2006-07-07 10:08 ` Arjan van de Ven [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1152266938.3111.45.camel@laptopd505.fenrus.org \
    --to=arjan@infradead.org \
    --cc=chinmaya@innomedia.soft.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®