Re: [GIT PULL] vhost,virtio,vdpa: bugfixes
From: Lorenzo Stoakes (ARM)
Date: Tue Nov 24 2026 - 08:51:55 EST
On Wed, Nov 04, 2026 at 08:15:35AM -0500, Michael S. Tsirkin wrote:
> chenglong.ma (1):
> vduse: fix VA/PA confusion in the coherent page fault path
This has landed as commit bb2e6f166547 ("vduse: fix VA/PA confusion in the
coherent page fault path") but I don't see the patch anywhere on lore (off-list
security report?)
Anyway, clearly nobody actually _ran_ this code in 7.4, not even claude, as
it's completely broken.
Commit 99fd6bf43d5d ("mm/vma: enforce that mm-managed mappings may not set
VMA_IO_BIT") literally made setting VM_IO incorrectly, like this patch does, a
WARN_ON error on mmap(), i.e. it _refuses_ to mmap it :)
It looks like it doesn't need VM_IO anyway, the other changes in the patch
make it redundant AFAICT, so you should send something like the below with
a Fixes pointing at bb2e6f166547:
--- a/drivers/vdpa/vdpa_user/iova_domain.c
+++ b/drivers/vdpa/vdpa_user/iova_domain.c
@@ static int vduse_domain_mmap(struct file *file, struct vm_area_struct *vma)
- vm_flags_set(vma, VM_IO | VM_DONTDUMP | VM_DONTEXPAND);
+ vm_flags_set(vma, VM_DONTDUMP | VM_DONTEXPAND);
--
Cheers, Lorenzo