On 12/5/23 10:45, David Marchand wrote:
vring_translate and vring_invalidate change the vq access_ok field.
The access_ok field should only be updated under a (write) lock.
Fixes: a9120db8b98b ("vhost: add VDUSE device startup")
Fixes: ad67c65efda1 ("vhost: add VDUSE device stop")
Cc: [email protected]
Signed-off-by: David Marchand <[email protected]>
Acked-by: Eelco Chaudron <[email protected]>
---
Changes since v1:
- moved fix out of patch 3,
---
lib/vhost/vduse.c | 4 ++++
1 file changed, 4 insertions(+)
Reviewed-by: Maxime Coquelin <[email protected]>
Thanks,
Maxime