mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Lord <kernel@teksavvy.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Linux 3.3-rc5
Date: Thu, 01 Mar 2012 09:47:10 -0500	[thread overview]
Message-ID: <4F4F8BEE.3040806@teksavvy.com> (raw)
In-Reply-To: <CA+55aFxMPOAdvu-iFL8vDzC=d1osVD91RfksLiE4sAP5Lf5oNQ@mail.gmail.com>

On 12-02-28 01:30 PM, Linus Torvalds wrote:
> On Mon, Feb 27, 2012 at 7:23 AM, Mark Lord <kernel@teksavvy.com> wrote:
>>
>> The i8k driver is still b0rked for COMPAT use in linux-3.2.xx,
>> and I don't think my patch got picked up by anyone for 3.3 yet:
>
> I really don't like your patch.
..

Heh, I think we agree on that point.  I hate it.  :)

> Quite frankly, I think the right solution is to fix the kernel
> interface to the right type (int) that is the same. But because we
> don't want to change the user interface, let's make the kernel
> *accept* the 8-byte entity and just change it into a 4-byte size, and
> leave the user-space visible ioctl numbers the same broken crap - it's
> not like the other ioctl numbers had the right size *either*...
>
> IOW, have something like the attached in the ioctl handler (and then
> we need to also add the compat handler, as in your patch).
>
> Does this (with your compat_ioctl wrapper addition) also work for you?


It's close (after adding a missing left-paren), but not 100% working yet.
In particular, this command fails to get valid data:  i8kctl bios

    ioctl(3, I8K_BIOS_VERSION, 0xbfc543c8)  = -1 EINVAL (Invalid argument)

That's the original issue I first noticed which prompted me to try
and get things to roughly behave again.

I think all (or at least most) of the other ioctls appear to be working though.

  parent reply	other threads:[~2012-03-01 14:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-25 20:34 Linus Torvalds
2012-02-27 15:23 ` Mark Lord
2012-02-28 18:30   ` Linus Torvalds
2012-02-28 19:29     ` Andreas Schwab
2012-02-28 19:39       ` Linus Torvalds
2012-03-01 14:47     ` Mark Lord [this message]
2012-03-01 15:26       ` [PATCH] i8k: fix ioctl handing (was Re: Linux 3.3-rc5) Mark Lord
2012-03-02  3:25         ` Linus Torvalds
2012-03-01 16:22       ` Linux 3.3-rc5 Linus Torvalds
2012-03-02  0:17         ` Mark Lord
2012-03-02  0:21           ` Mark Lord
2012-03-02  0:31             ` Linus Torvalds
2012-03-02  3:48               ` Mark Lord
2012-02-27 21:59 ` Michael S. Tsirkin

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=4F4F8BEE.3040806@teksavvy.com \
    --to=kernel@teksavvy.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.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

Powered by JetHome