Thread View: linux.kernel.netdev
3 messages
3 total messages
Started by "Lorenzo Stoakes (ARM)"
Tue, 24 Nov 2026 13:51
Re: [GIT PULL] vhost,virtio,vdpa: bugfixes
Author: "Lorenzo Stoakes (ARM)"
Date: Tue, 24 Nov 2026 13:51
Date: Tue, 24 Nov 2026 13:51
28 lines
9379 bytes
9379 bytes
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
Re: [GIT PULL] vhost,virtio,vdpa: bugfixes
Author: "chenglong.ma"
Date: Wed, 25 Nov 2026 06:05
Date: Wed, 25 Nov 2026 06:05
16 lines
12213 bytes
12213 bytes
On Tue, Nov 24, 2026 at 01:51:29PM +0000, Lorenzo Stoakes (ARM) wrote: > 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: Sorry about that: it went to security@kernel.org (hence no lore thread), I did not test it on 7.4-rc, and you're right that VM_IO is redundant, since vduse_domain_set_map() is the only way vhost-vdpa entries reach the domain iotlb and it already rejects anything backed by the domain file. I'll send the one-liner with Fixes: bb2e6f166547 and your Reported-by and Suggested-by once I have actually run it on current mainline. Thanks for catching this.
Re: [GIT PULL] vhost,virtio,vdpa: bugfixes
Author: "Lorenzo Stoakes (ARM)"
Date: Wed, 25 Nov 2026 12:25
Date: Wed, 25 Nov 2026 12:25
27 lines
9290 bytes
9290 bytes
On Wed, Nov 25, 2026 at 02:05:32PM +0800, chenglong.ma wrote: > On Tue, Nov 24, 2026 at 01:51:29PM +0000, Lorenzo Stoakes (ARM) wrote: > > 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: > > Sorry about that: it went to security@kernel.org (hence no lore thread), > I did not test it on 7.4-rc, and you're right that VM_IO is redundant, > since vduse_domain_set_map() is the only way vhost-vdpa entries reach > the domain iotlb and it already rejects anything backed by the domain > file. Please, in future, when you submit something for a kernel release, test your change against that kernel release :) or get your LLM to ;) > > I'll send the one-liner with Fixes: bb2e6f166547 and your Reported-by > and Suggested-by once I have actually run it on current mainline. Thanks! > > Thanks for catching this. -- Cheers, Lorenzo
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads