public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Yoav Artzi <yoavar@checkpoint.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Sending IOCTLs from 32-bit userland to 64-bit Kernel module
Date: Tue, 29 Jan 2008 16:29:17 +0100	[thread overview]
Message-ID: <479F464D.7050603@gmail.com> (raw)
In-Reply-To: <479F278D.3010905@checkpoint.com>

On 01/29/2008 02:18 PM, Yoav Artzi wrote:
> Thanks. I am aware of these issues and we already have a pretty capable 
> layer to deal with these issues (unfortunately, it was very necessary). 
> My problem is not with the data carried by the IOCTL, but with IOCTL 
> command code itself, which comes out wrong on the kernel side. And my 
> problem is not only in the size data, but also in other fields.
> 
> IOCTL command code:
> 
> 1 byte: W/R/RW                                       -------- Passes 
> through fine
> 
> 1 byte: size of data carried                         -------- DOESN'T 
> PASS THROUGH
> 
> 1 byte: identifier character of the module   -------- Passes through fine
> 
> 1 byte: IOCTL number                               -------- DOESN'T PASS 
> THROUGH
> 
> 
> The funny thing is that I always get the same IOCTL command code on the 
> kernel side, no matter what I send using the ioctl() system call.
> 
> 
> Any idea?

Please show us your code with ioctls implemented both in kernel and userspace. 
And the definitions and fops aswell. Without it it's very hard to say what's 
going wrong.

  reply	other threads:[~2008-01-29 15:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-29 13:18 Sending IOCTLs from 32-bit userland to 64-bit Kernel module Yoav Artzi
2008-01-29 15:29 ` Jiri Slaby [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-01-29 13:08 Yoav Artzi
2008-01-29 12:13 Yoav Artzi
2008-01-29 13:05 ` Michael Tokarev
2008-01-29 13:23   ` Jiri Slaby
2008-01-29 13:23 ` Matti Aarnio

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=479F464D.7050603@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yoavar@checkpoint.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