RE: [PATCH v2] vfio/pci: Do vf_token checks for VFIO_DEVICE_BIND_IOMMUFD

2025-07-11 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Jason Gunthorpe > Sent: Thursday, July 10, 2025 4:30 PM > To: Ankit Agrawal ; Brett Creeley > ; Giovanni Cabiddu > ; Kevin Tian ; > k...@vger.kernel.org; liulongfang ; qat- > li...@intel.com; virtualization@lists.linux.dev; Xin Zeng > ; Yishai Hadas > Cc: A

Re: [PATCH v2] vfio/pci: Do vf_token checks for VFIO_DEVICE_BIND_IOMMUFD

2025-07-11 Thread Jason Gunthorpe
On Fri, Jul 11, 2025 at 12:01:49PM +, Shameerali Kolothum Thodi wrote: > > minsz = offsetofend(struct vfio_device_bind_iommufd, out_devid); > > > > - if (copy_from_user(&bind, arg, minsz)) > > - return -EFAULT; > > + ret = get_user(user_size, &arg->argsz); > > + if (ret) >

virtio_net: Incorrect VLAN filter configuration on boot

2025-07-11 Thread Konstantin Shkolnyy
Symptom: On boot, if VIRTIO_NET_F_CTRL_VLAN is negotiated, QEMU adds all 4096 VLANs to the VLAN filter table. But, according to the virtio spec, the table should be empty in this case. (Observed when using VDPA.) Investigation: commit 06b636a1e2ad12ab130edcbb0ccf995118440706 Autho