Skip to content

Commit 1f9c632

Browse files
committed
Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
Pull virtio fix from Michael Tsirkin: "A last minute revert The 32-bit build got broken by the latest defence in depth patch. Revert and we'll try again in the next cycle" * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: Revert "vhost: block speculation of translated descriptors"
2 parents b03c036 + 0d4a3f2 commit 1f9c632

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/vhost/vhost.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,10 +2071,8 @@ static int translate_desc(struct vhost_virtqueue *vq, u64 addr, u32 len,
20712071
_iov = iov + ret;
20722072
size = node->size - addr + node->start;
20732073
_iov->iov_len = min((u64)len - s, size);
2074-
_iov->iov_base = (void __user *)
2075-
((unsigned long)node->userspace_addr +
2076-
array_index_nospec((unsigned long)(addr - node->start),
2077-
node->size));
2074+
_iov->iov_base = (void __user *)(unsigned long)
2075+
(node->userspace_addr + addr - node->start);
20782076
s += size;
20792077
addr += size;
20802078
++ret;

0 commit comments

Comments
 (0)