Re: [PATCH] USB: gadgetfs: fix copy_to_user while holding spinlock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> writes:

> The gadgetfs driver as a long-outstanding FIXME, regarding a call of
> copy_to_user() made while holding a spinlock.  This patch fixes the
> issue by dropping the spinlock and using the dev->udc_usage mechanism
> introduced by another recent patch to guard against status changes
> while the lock isn't held.
>
> Signed-off-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> Reported-by: Andrey Konovalov <andreyknvl@xxxxxxxxxx>
> CC: <stable@xxxxxxxxxxxxxxx>

Acked-by: Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx>

-- 
balbi

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux