[Devel] [PATCH hci-8.1 v3 0/2] drivers/vhost/blk: add support for worker ioctls
Alexander Ivanov
alexander.ivanov at virtuozzo.com
Sun Nov 15 16:39:55 MSK 2026
vhost-blk gets the mainstream worker ioctls, so userspace can move from
our VHOST_SET_NWORKERS to them. Until it does, both interfaces live on
the same device, and the workers VHOST_SET_NWORKERS installs are not
counted in attachment_cnt: VHOST_FREE_WORKER can free a worker a vq
still uses.
Patch 1 attaches the VHOST_SET_NWORKERS workers with
__vhost_vq_attach_worker(), so VHOST_FREE_WORKER refuses to free them.
Patch 2 wires the worker ioctls into vhost-blk.
v3:
- patch 1: skip a source vq whose worker was killed, reject
VHOST_SET_NWORKERS on devices that do not use workers (vhost-vdpa),
add the Fixes tag
- patch 2: unchanged
v2:
- patch 1: new, keeps VHOST_SET_NWORKERS safe next to the worker ioctls
- patch 2: unchanged
https://virtuozzo.atlassian.net/browse/VSTOR-107537
Alexander Ivanov (2):
drivers/vhost: fix a use-after-free of VHOST_SET_NWORKERS workers
drivers/vhost/blk: add support for worker ioctls
drivers/vhost/blk.c | 8 ++++++++
drivers/vhost/vhost.c | 11 ++++++++---
2 files changed, 16 insertions(+), 3 deletions(-)
--
2.53.0
More information about the Devel
mailing list