Re: [PATCH v2 1/5] vhost: fix virtqueue access check in datapath

2023-12-12 Thread Maxime Coquelin
On 12/5/23 10:45, David Marchand wrote: Now that a r/w lock is used, the access_ok field should only be updated under a write lock. Since the datapath code only takes a read lock on the virtqueue to check access_ok, this lock must be released and a write lock taken before calling vring_transl

[PATCH v2 1/5] vhost: fix virtqueue access check in datapath

2023-12-05 Thread David Marchand
Now that a r/w lock is used, the access_ok field should only be updated under a write lock. Since the datapath code only takes a read lock on the virtqueue to check access_ok, this lock must be released and a write lock taken before calling vring_translate(). Fixes: 03f77d66d966 ("vhost: change v