From: Paolo Bonzini <pbonzini@redhat.com>
To: Greg KH <greg@kroah.com>
Cc: Josh Boyer <jwboyer@gmail.com>,
Sven-Haegar Koch <haegar@sdinet.de>,
linux-kernel@vger.kernel.org, stable@vger.kernel.org,
torvalds@linux-foundation.org, akpm@linux-foundation.org,
alan@lxorguk.ukuu.org.uk, linux-scsi@vger.kernel.org,
Jens Axboe <axboe@kernel.dk>,
James Bottomley <JBottomley@parallels.com>
Subject: Re: [v2] Re: [091/129] block: fail SCSI passthrough ioctls on partition devices
Date: Thu, 26 Jan 2012 09:02:29 +0100 [thread overview]
Message-ID: <4F210895.8090100@redhat.com> (raw)
In-Reply-To: <20120126000749.GC14281@kroah.com>
On 01/26/2012 01:07 AM, Greg KH wrote:
> On Wed, Jan 25, 2012 at 06:10:47PM -0500, Josh Boyer wrote:
>> On Wed, Jan 25, 2012 at 5:51 PM, Sven-Haegar Koch<haegar@sdinet.de> wrote:
>>> On Wed, 25 Jan 2012, Greg KH wrote:
>>>
>>>> On Tue, Jan 24, 2012 at 05:43:50PM +0100, Paolo Bonzini wrote:
>>>>>> You need to return -ENOTTY from scsi_verify_blk_ioctl and -ENOIOCTLCMD from
>>>>>> sd_compat_ioctl, because -ENOIOCTLCMD will not be handled correctly by
>>>>>> block/ioctl.c. This would break BLKROSET and BLKFLSBUF done by non-root
>>>>>> but with the appropriate capabilities.
>>>>>>
>>>>>> Fixed patch follows. If you prefer that I send an interdiff, let me know.
>>>>
>>>> Wait, why do you want the stable trees to diverge from what is in
>>>> Linus's tree with regards to the error codes being returned?
>>>>
>>>> That doesn't seem safe, or sane.
>>>>
>>>> So for now, I'm going to follow what is in Linus's tree. If you
>>>> need/want the error codes to be different, then shouldn't it also be
>>>> done there as well?
>>>
>>> May be because the stable trees do not have
>>> 07d106d0a33d6063d2061305903deb02489eba20? "vfs: fix up ENOIOCTLCMD error
>>> handling"?
>>
>> I believe that is the case, yes. Linus was unhappy about ENOIOCTLCMD vs.
>> ENOTTY overall when the patch was first submitted, which lead to that commit.
>> The patches Paolo submitted for stable are the original versions that apply
>> directly to 3.2 and older.
>>
>> 07d106d0a isn't really stable material as it was put into 3.3 to catch any odd
>> fallout from the change.
>
> Ok, thanks both of you, that makes more sense now. I'll take Paolo's
> updated patches and do a release now.
Yes, that's correct. Thanks Sven and Josh, I was already sleeping. :)
FWIW, there are a couple more ioctls that need to be in the whitelist.
I'll submit the patch today or tomorrow, but it doesn't need to hold the
stable release.
Paolo
next prev parent reply other threads:[~2012-01-26 8:02 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20120124024041.GA18422@kroah.com>
2012-01-24 2:35 ` [090/129] block: add and use scsi_blk_cmd_ioctl Greg KH
2012-01-24 2:35 ` [091/129] block: fail SCSI passthrough ioctls on partition devices Greg KH
2012-01-24 13:01 ` Paolo Bonzini
2012-01-24 14:10 ` Sven Joachim
2012-01-24 14:48 ` Sven Joachim
2012-01-24 16:43 ` [v2] " Paolo Bonzini
2012-01-25 22:39 ` Greg KH
2012-01-25 22:51 ` Sven-Haegar Koch
2012-01-25 23:10 ` Josh Boyer
2012-01-26 0:07 ` Greg KH
2012-01-26 8:02 ` Paolo Bonzini [this message]
[not found] <20120123234211.GA19504@kroah.com>
2012-01-23 23:39 ` [61/90] block: add and use scsi_blk_cmd_ioctl Greg KH
2012-01-23 23:39 ` [62/90] block: fail SCSI passthrough ioctls on partition devices Greg KH
2012-01-24 13:01 ` Paolo Bonzini
2012-01-24 16:43 ` [v2] " Paolo Bonzini
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=4F210895.8090100@redhat.com \
--to=pbonzini@redhat.com \
--cc=JBottomley@parallels.com \
--cc=akpm@linux-foundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=axboe@kernel.dk \
--cc=greg@kroah.com \
--cc=haegar@sdinet.de \
--cc=jwboyer@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=stable@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;
as well as URLs for NNTP newsgroup(s).