On Mon, 2022-04-25 at 15:49 +0200, Oliver Neukum wrote: > > > On 25.04.22 15:23, Bastien Nocera wrote: > > struct usb_memory { > > @@ -237,6 +238,9 @@ static int usbdev_mmap(struct file *file, > > struct vm_area_struct *vma) > > dma_addr_t dma_handle; > > int ret; > > > > + if (!connected(ps) || ps->revoked) > > + return -ENODEV; > > + > This lacks locking. I'll look into straightening out the locking, thanks.