Re: [PATCH v2 2/3] block: fail SCSI passthrough ioctls on partitiondevices

From: Ben Hutchings
Date: Mon Jan 16 2012 - 22:59:03 EST


On Mon, 2012-01-16 at 09:51 +0100, Paolo Bonzini wrote:
> On 01/15/2012 12:43 AM, Linus Torvalds wrote:
> > Anyway, with the changes to print out warnings and still allow it for
> > root, this all looked safe and nice, so they are in my tree now. I
> > only noticed after applying them that you hadn't marked them with 'cc:
> > stable@xxxxxxxxxx', so we should probably point Greg at them. They are
> > commits
> >
> > 577ebb374c78 block: add and use scsi_blk_cmd_ioctl
> > 0bfc96cb7722 block: fail SCSI passthrough ioctls on partition devices
> > ec8013beddd7 dm: do not forward ioctls from logical volumes to the
> > underlying device
> >
> > in my tree now.
>
> I'll tweak them myself for stable based on what you committed, so that
> they do not require your ENOTTY/ENOIOCTLCMD change (i.e. with the uglier
> v1 implementation).
>
> Thanks very much.

Paolo, I've just done this for Debian's stable kernel based on 2.6.32.
I'll send them as a follow-up to this.

Ben.

--
Ben Hutchings
When in doubt, use brute force. - Ken Thompson

Attachment: signature.asc
Description: This is a digitally signed message part