From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Stephen Cameron <smcameron@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: x86_64 and ioctls from 32 bit userland
Date: Fri, 21 May 2004 18:58:00 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.53.0405211854590.1296@chaos> (raw)
In-Reply-To: <20040521194224.63535.qmail@web12303.mail.yahoo.com>
On Fri, 21 May 2004, Stephen Cameron wrote:
> Hi, a question about x86_64 and ioctls coming in from 32-bit
> userland.
>
> I found this document describing 32-bit ioctls on 64 bit archs,
> http://shorterlink.com/?47B2OV
> but, it is from July of 2002, so I'm not sure it's up to date.
> Should I look somewhere else?
>
> Also, if my userland process passes in an ioctl data structure
> and that data structure in turn contains ontains a 32 bit pointer
> to another data buffer within that process' address space
> the kernel needs to copy in/oot, how can that be handled?
> Can it be handled?
>
> Thanks,
>
> -- steve
Yes. The user-mode 32-bit pointer within a structure is no different
than passing a 32-bit user-mode pointer as the third parameter to
an ioctl(fd, WHAT, ptr).
Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
Note 96.31% of all statistics are fiction.
next prev parent reply other threads:[~2004-05-21 23:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-21 19:42 Stephen Cameron
2004-05-21 22:58 ` Richard B. Johnson [this message]
2004-05-24 16:45 ` Stephen Cameron
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=Pine.LNX.4.53.0405211854590.1296@chaos \
--to=root@chaos.analogic.com \
--cc=linux-kernel@vger.kernel.org \
--cc=smcameron@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
all inboxes | Powered by JetHome®