From: Om <okuttan@netd.com>
To: Rock Gordon <rockgordon@yahoo.com>
Cc: Jan Hudec <bulb@ucw.cz>,
linux-kernel@vger.kernel.org, kernelnewbies@nl.linux.org,
Bernd Petrovitsch <bernd@firmix.at>
Subject: Re: userspace vs. kernelspace address
Date: Fri, 28 Jan 2005 20:23:55 -0800 [thread overview]
Message-ID: <20050129042355.GA5527@netd.com> (raw)
In-Reply-To: <20050128214051.34768.qmail@web41411.mail.yahoo.com>
On Fri, Jan 28, 2005 at 01:40:51PM -0800, Rock Gordon wrote:
> Hi everbody,
>
> Thanks for your replies.
>
> However I think my copy_to_user and copy_from_user are
> failing since the kernel-mode thread is copying data
> into another process's address space, and I am not
> sure how to do this. Do the get_fs() and set_fs()
> combinations let you do that? If not, then how do I do
My idea is on kernel thread is limited. But I think it is not possible to
any userspace address from any kernel thread because they do not have access
to it. Their proc_struct->mm field is empty.
I am not sure whether set_fs and get_fs help in this case.
HTH,
Om
next prev parent reply other threads:[~2005-01-29 7:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20050128075209.GA14153@vagabond>
2005-01-28 21:40 ` userspace vs. kernelspace address Rock Gordon
2005-01-29 4:23 ` Om [this message]
2005-01-30 8:41 ` Jan Hudec
2005-01-30 15:37 ` Bernd Petrovitsch
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=20050129042355.GA5527@netd.com \
--to=okuttan@netd.com \
--cc=bernd@firmix.at \
--cc=bulb@ucw.cz \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rockgordon@yahoo.com \
/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