mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan@infradead.org>
To: yogeshwar sonawane <yogyas@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: referring a user address from ioctl entry point
Date: Tue, 21 Mar 2006 15:47:08 +0100	[thread overview]
Message-ID: <1142952429.3077.87.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <b681c62b0603210644p41711a16ydda5b18bfb531641@mail.gmail.com>

On Tue, 2006-03-21 at 20:14 +0530, yogeshwar sonawane wrote:
> Hi all,
> 
> can we write directly to user virtual address from kernel space?
> i.e. dereferencing a user address from driver entry point?
> 

No this is not allowed and a big security hole at minimum.
You HAVE to use copy_from_user / copy_to_user and similar API to do
this. Be glad the FC3 kernel doesn't allow this at all ;)



      reply	other threads:[~2006-03-21 14:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-21 14:44 yogeshwar sonawane
2006-03-21 14:47 ` 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=1142952429.3077.87.camel@laptopd505.fenrus.org \
    --to=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yogyas@gmail.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

all inboxes | Powered by JetHome®