Commit 1f9c632c authored by Linus Torvalds's avatar Linus Torvalds
Browse files
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"
parents b03c036e 0d4a3f2a
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -2071,10 +2071,8 @@ static int translate_desc(struct vhost_virtqueue *vq, u64 addr, u32 len,
		_iov = iov + ret;
		size = node->size - addr + node->start;
		_iov->iov_len = min((u64)len - s, size);
		_iov->iov_base = (void __user *)
			((unsigned long)node->userspace_addr +
			 array_index_nospec((unsigned long)(addr - node->start),
					    node->size));
		_iov->iov_base = (void __user *)(unsigned long)
			(node->userspace_addr + addr - node->start);
		s += size;
		addr += size;
		++ret;