Re: sending ioctl warnings for a partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On 02/04/2012 07:28 PM, Douglas Gilbert wrote:

If I'm not mistaken, the whole point of a series of patches
titled: "fail SCSI passthrough ioctls on partition devices"
was to flag and ultimately break any user space code that
attempted to use the SG_IO ioctl on a partition block
device (e.g. send a SCSI INQUIRY via SG_IO to /dev/sda2).

This is for security reasons. So when the kernel enforces
that, zfs-fuse will break. Please alert the zfs-fuse

That's correct. zfs-fuse is trying to send a SYNCHRONIZE CACHE command, they should just use BLKFLSBUF (which will also give a warning due to a quirk in block/ioctl.c, but it's a false positive and the warning will go away soonish).

In principle, SYNCHRONIZE CACHE is "safe" even if sent to a partition and doesn't really leak anything, but I'm not sure we want to look into the CDB in scsi_ioctl.c.

To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Photos]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

Add to Google Powered by Linux