[Devel] [PATCH hci-8.1 v2 0/3] drivers/vhost/blk: fix virtio-blk request header and payload parsing

Konstantin Khorenko khorenko at virtuozzo.com
Thu Oct 29 16:25:04 MSK 2026


On Thu, 29 Oct 2026 13:59:20 +0100, Alexander Ivanov wrote:
> drivers/vhost/blk: fix virtio-blk request header and payload parsing
> 
> vhost-blk parsed guest requests from the whole descriptor chain without
> telling the device-readable part from the device-writable one, and used
> the header fields without byte order conversion.
> 
> Patch 1 converts hdr->type and hdr->sector to CPU byte order.
> 
> [...]

Applied to branch-rh10-6.12.0-211.52.1.22.x.vz10-ovz, will be released in rh10-6.12.0-211.52.1.22.12.vz10, thanks!

[1/3] drivers/vhost/blk: convert virtio_blk_outhdr fields to CPU byte order
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/67f3f8d1779e
[2/3] drivers/vhost/blk: take virtio_blk_outhdr only from the readable part
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/1660e62fccab
[3/3] drivers/vhost/blk: take req->len from one side of the descriptor chain
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/06c6e4bb1aa9

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team




More information about the Devel mailing list