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 maintainers.
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.
Paolo -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html