alignment enforcement in dm-crypt causes severe problems

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

 



Hello devs,

please see issue: https://github.com/virtio-win/kvm-guest-drivers-windows/issues/446

Short summary: When using encrypted disks with qemu (using dm-crypt) and pass that through LIO/vhost to qemu (via virtio-scsi) the following code is hit:

https://elixir.bootlin.com/linux/v5.3.18/source/drivers/md/dm-crypt.c#L1251

I am not familiar with the specification/contract of "bio". So I am not sure if the enforced alignment is legitimate.

Under Windows you cannot even initialize a disk because it wants to write sector 0 (count = 1) at offset 432.

Could some expert please comment?

Regards Andreas


--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux